Files
5.24BuYu/Assets/MyGame/aa/Game/FLZY/BOSS/TSK/TSKDieEvent.cs
T
2026-09-18 08:15:08 +08:00

27 lines
731 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TSKDieEvent : BJRedPacketEvent
{
private void Awake()
{
scoreCount = 1;
AudioManager.Instance.PlayerFX(62012);
}
public override void Init(long goldCount, int posID, long paobei, long fishScore, int beishu, Action<int> action, Action action1 = null)
{
base.Init(goldCount, posID, paobei, fishScore, beishu, action, action1);
// 位置不再手动设置,用预制体自带的(基类已不会用 startOffset 覆盖位置)
StartCoroutine(yan());
}
public IEnumerator yan()
{
yield return new WaitForSeconds(4f);
CallBJ();
}
}