白龙马
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);
|
||||
|
||||
@@ -1,15 +1,42 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class Eff_longDie_AniEvent1 : MonoBehaviour
|
||||
{
|
||||
bool isfirst = true;
|
||||
HHWK_BLM_Boss hHWK_BLM_Boss;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_BLM_Boss = transform.parent.parent.GetComponent<HHWK_BLM_Boss>();
|
||||
}
|
||||
public IEnumerator jiafen()
|
||||
{
|
||||
yield return new WaitForSeconds(1.5f);
|
||||
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);
|
||||
Vector3 v3 = transform.parent.parent.GetComponent<HHWK_BLM_Boss>().ani_LongDieState3.transform.localScale;
|
||||
hHWK_BLM_Boss.ani_LongDieState3.SetActive(true);
|
||||
Vector3 v3 = hHWK_BLM_Boss.ani_LongDieState3.transform.localScale;
|
||||
v3.z *= -1;
|
||||
transform.parent.parent.GetComponent<HHWK_BLM_Boss>().ani_LongDieState3.transform.localScale=v3;
|
||||
hHWK_BLM_Boss.BigPrize();
|
||||
|
||||
GameManager.Instance.StartCoroutine(jiafen());
|
||||
|
||||
|
||||
hHWK_BLM_Boss.ani_LongDieState3.transform.localScale=v3;
|
||||
transform.parent.gameObject.SetActive(false);
|
||||
isfirst = false;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -2,7 +2,42 @@ using UnityEngine;
|
||||
|
||||
public class Eff_tsgzSkill_AniEvent : MonoBehaviour
|
||||
{
|
||||
/*
|
||||
HHWK_TSGZ_Boss hHWK_TSGZ_Boss;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_TSGZ_Boss = GetComponentInParent<HHWK_TSGZ_Boss>();
|
||||
}
|
||||
public void eventComeEnd()
|
||||
{
|
||||
hHWK_TSGZ_Boss.skillAnim.CrossFade("skill1", 0.3f);
|
||||
}
|
||||
public void eventSkill1Effect()
|
||||
{
|
||||
hHWK_TSGZ_Boss.transform.GetChild(2).gameObject.SetActive(true);
|
||||
hHWK_TSGZ_Boss.BigPrizeAll();
|
||||
|
||||
}
|
||||
public void eventSkill1End()
|
||||
{
|
||||
hHWK_TSGZ_Boss.skillAnim.CrossFade("skill_idle", 0.3f);
|
||||
}
|
||||
public void eventIdleEnd ()
|
||||
{
|
||||
hHWK_TSGZ_Boss.skillAnim.CrossFade("skill2", 0.3f);
|
||||
}
|
||||
public void eventSkill2Effect()
|
||||
{
|
||||
hHWK_TSGZ_Boss.transform.GetChild(3).gameObject.SetActive(true);
|
||||
}
|
||||
public void eventSkill2End()
|
||||
{
|
||||
hHWK_TSGZ_Boss.skillAnim.CrossFade("skill_rotation", 0.3f);
|
||||
}
|
||||
public void eventRotationEnd()
|
||||
{
|
||||
Destroy(hHWK_TSGZ_Boss.gameObject);
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
1. No dll files were provided to AssetRipper.
|
||||
|
||||
Reference in New Issue
Block a user