白龙马
This commit is contained in:
@@ -1,8 +1,34 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class Eff_longSkill2_AniEvent : MonoBehaviour
|
||||
{
|
||||
bool isFirst = true;
|
||||
HHWK_BLM_Boss hHWK_BLM_Boss;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_BLM_Boss = GetComponentInParent<HHWK_BLM_Boss>();
|
||||
}
|
||||
public void EffectSkill()
|
||||
{
|
||||
|
||||
}
|
||||
public IEnumerator jiafen()
|
||||
{
|
||||
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()
|
||||
{
|
||||
if (isFirst)
|
||||
@@ -14,8 +40,9 @@ public class Eff_longSkill2_AniEvent : MonoBehaviour
|
||||
{
|
||||
transform.parent.GetComponent<HHWK_BLM_Boss>().ani_LongDieState2.SetActive(true);
|
||||
}
|
||||
////放特效
|
||||
//transform.gameObject.SetActive(false);
|
||||
////放特效
|
||||
//transform.gameObject.SetActive(false);
|
||||
|
||||
//放特效
|
||||
transform.gameObject.SetActive(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user