白龙马
This commit is contained in:
@@ -1,14 +1,43 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class Eff_longDie_AniEvent : MonoBehaviour
|
||||
{
|
||||
bool isFirst=true;
|
||||
public void End()
|
||||
HHWK_BLM_Boss hHWK_BLM_Boss;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_BLM_Boss = transform.parent.parent.GetComponent<HHWK_BLM_Boss>();
|
||||
}
|
||||
bool isFirst=true;
|
||||
public IEnumerator jiafen()
|
||||
{
|
||||
yield return new WaitForSeconds(2f);
|
||||
Transform tra = hHWK_BLM_Boss.tMP_CurrBossScore.transform.parent;
|
||||
GameObject obj = CreateFishManager.Instance.dieFXPrefabAwardTmp_AddScore;
|
||||
List<RedPacketRecord> redPacketRecords = new List<RedPacketRecord>();
|
||||
redPacketRecords = hHWK_BLM_Boss.redPacketRecords[0];
|
||||
|
||||
hHWK_BLM_Boss.redPacketRecords.RemoveAt(0);
|
||||
foreach (var item in redPacketRecords)
|
||||
{
|
||||
yield return new WaitForSeconds(0.15f);
|
||||
Instantiate(obj, tra.position, Quaternion.identity, tra).transform.GetChild(0).GetComponent<TextMeshProUGUI>().text = CoinScript.NumAdd(item.Amount.ToString());
|
||||
}
|
||||
}
|
||||
public void End()
|
||||
{
|
||||
transform.parent.parent.GetComponent<HHWK_BLM_Boss>().ani_LongDieState3.SetActive(true);
|
||||
hHWK_BLM_Boss.ani_LongDieState3.SetActive(true);
|
||||
//放特效
|
||||
transform.parent.gameObject.SetActive(false);
|
||||
|
||||
|
||||
hHWK_BLM_Boss.BigPrize();
|
||||
|
||||
|
||||
GameManager.Instance.StartCoroutine(jiafen());
|
||||
|
||||
if (isFirst)
|
||||
{
|
||||
transform.parent.gameObject.SetActive(false);
|
||||
|
||||
Reference in New Issue
Block a user