1
This commit is contained in:
@@ -3,95 +3,110 @@ using UnityEngine;
|
||||
public class Eff_BCJX_Skill_AniEvent : MonoBehaviour
|
||||
{
|
||||
public HHWK_BCJX_Boss hWK_BCJX_Boss;
|
||||
private void Awake()
|
||||
{
|
||||
hWK_BCJX_Boss = GetComponentInParent<HHWK_BCJX_Boss>();
|
||||
}
|
||||
private void Awake()
|
||||
{
|
||||
hWK_BCJX_Boss = GetComponentInParent<HHWK_BCJX_Boss>();
|
||||
}
|
||||
public void eventEnterEnd()
|
||||
{
|
||||
hWK_BCJX_Boss.skillAnim.Play("skill");
|
||||
|
||||
}
|
||||
public void eventSkillEnd()
|
||||
{
|
||||
if (index>=hWK_BCJX_Boss.prizeCount)
|
||||
|
||||
}
|
||||
public void eventSkillEnd()
|
||||
{
|
||||
if (index >= hWK_BCJX_Boss.prizeCount)
|
||||
{
|
||||
Destroy(hWK_BCJX_Boss.gameObject);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hWK_BCJX_Boss.skillAnim.Play("idle");
|
||||
hWK_BCJX_Boss.skillAnim.Play("idle");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
int index = 0;
|
||||
public void eventHitStart1()
|
||||
public void eventHitStart1()
|
||||
{
|
||||
hWK_BCJX_Boss.BigPrize();
|
||||
index++;
|
||||
}
|
||||
public void eventHitStart2()
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_BCJX_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("left"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["left"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventHitStart2()
|
||||
{
|
||||
hWK_BCJX_Boss.BigPrize();
|
||||
index++;
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
hWK_BCJX_Boss.BigPrize();
|
||||
index++;
|
||||
GameManager.Instance.cameraShake.ShakePresets.Explosion2D(3f, 4f, 1f);
|
||||
|
||||
1. No dll files were provided to AssetRipper.
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_BCJX_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("right"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["right"]);
|
||||
}
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
Unity asset bundles and serialized files do not contain script information to decompile.
|
||||
* For Mono games, that information is contained in .NET dll files.
|
||||
* For Il2Cpp games, that information is contained in compiled C++ assemblies and the global metadata.
|
||||
|
||||
AssetRipper usually expects games to conform to a normal file structure for Unity games of that platform.
|
||||
A unexpected file structure could cause AssetRipper to not find the required files.
|
||||
1. No dll files were provided to AssetRipper.
|
||||
|
||||
2. Incorrect dll files were provided to AssetRipper.
|
||||
Unity asset bundles and serialized files do not contain script information to decompile.
|
||||
* For Mono games, that information is contained in .NET dll files.
|
||||
* For Il2Cpp games, that information is contained in compiled C++ assemblies and the global metadata.
|
||||
|
||||
Any of the following could cause this:
|
||||
* Il2CppInterop assemblies
|
||||
* Deobfuscated assemblies
|
||||
* Older assemblies (compared to when the bundle was built)
|
||||
* Newer assemblies (compared to when the bundle was built)
|
||||
AssetRipper usually expects games to conform to a normal file structure for Unity games of that platform.
|
||||
A unexpected file structure could cause AssetRipper to not find the required files.
|
||||
|
||||
Note: Although assembly publicizing is bad, it alone cannot cause empty scripts. See: https://github.com/AssetRipper/AssetRipper/issues/653
|
||||
2. Incorrect dll files were provided to AssetRipper.
|
||||
|
||||
3. Assembly Reconstruction has not been implemented.
|
||||
Any of the following could cause this:
|
||||
* Il2CppInterop assemblies
|
||||
* Deobfuscated assemblies
|
||||
* Older assemblies (compared to when the bundle was built)
|
||||
* Newer assemblies (compared to when the bundle was built)
|
||||
|
||||
Asset bundles contain a small amount of information about the script content.
|
||||
This information can be used to recover the serializable fields of a script.
|
||||
Note: Although assembly publicizing is bad, it alone cannot cause empty scripts. See: https://github.com/AssetRipper/AssetRipper/issues/653
|
||||
|
||||
See: https://github.com/AssetRipper/AssetRipper/issues/655
|
||||
3. Assembly Reconstruction has not been implemented.
|
||||
|
||||
4. This script is unnecessary.
|
||||
Asset bundles contain a small amount of information about the script content.
|
||||
This information can be used to recover the serializable fields of a script.
|
||||
|
||||
If this script has no asset or script references, it can be deleted.
|
||||
Be sure to resolve any compile errors before deleting because they can hide references.
|
||||
See: https://github.com/AssetRipper/AssetRipper/issues/655
|
||||
|
||||
5. Script Content Level 0
|
||||
4. This script is unnecessary.
|
||||
|
||||
AssetRipper was set to not load any script information.
|
||||
If this script has no asset or script references, it can be deleted.
|
||||
Be sure to resolve any compile errors before deleting because they can hide references.
|
||||
|
||||
6. Cpp2IL failed to decompile Il2Cpp data
|
||||
5. Script Content Level 0
|
||||
|
||||
If this happened, there will be errors in the AssetRipper.log indicating that it happened.
|
||||
This is an upstream problem, and the AssetRipper developer has very little control over it.
|
||||
Please post a GitHub issue at: https://github.com/SamboyCoding/Cpp2IL/issues
|
||||
AssetRipper was set to not load any script information.
|
||||
|
||||
7. An incorrect path was provided to AssetRipper.
|
||||
6. Cpp2IL failed to decompile Il2Cpp data
|
||||
|
||||
This is characterized by "Mixed game structure has been found at" in the AssetRipper.log file.
|
||||
AssetRipper expects games to conform to a normal file structure for Unity games of that platform.
|
||||
An unexpected file structure could cause AssetRipper to not find the required files for script decompilation.
|
||||
Generally, AssetRipper expects users to provide the root folder of the game. For example:
|
||||
* Windows: the folder containing the game's .exe file
|
||||
* Mac: the .app file/folder
|
||||
* Linux: the folder containing the game's executable file
|
||||
* Android: the apk file
|
||||
* iOS: the ipa file
|
||||
* Switch: the folder containing exefs and romfs
|
||||
If this happened, there will be errors in the AssetRipper.log indicating that it happened.
|
||||
This is an upstream problem, and the AssetRipper developer has very little control over it.
|
||||
Please post a GitHub issue at: https://github.com/SamboyCoding/Cpp2IL/issues
|
||||
|
||||
*/
|
||||
7. An incorrect path was provided to AssetRipper.
|
||||
|
||||
This is characterized by "Mixed game structure has been found at" in the AssetRipper.log file.
|
||||
AssetRipper expects games to conform to a normal file structure for Unity games of that platform.
|
||||
An unexpected file structure could cause AssetRipper to not find the required files for script decompilation.
|
||||
Generally, AssetRipper expects users to provide the root folder of the game. For example:
|
||||
* Windows: the folder containing the game's .exe file
|
||||
* Mac: the .app file/folder
|
||||
* Linux: the folder containing the game's executable file
|
||||
* Android: the apk file
|
||||
* iOS: the ipa file
|
||||
* Switch: the folder containing exefs and romfs
|
||||
|
||||
*/
|
||||
}
|
||||
@@ -6,15 +6,31 @@ public class Eff_changE_SkillEvent : MonoBehaviour
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_CE_Boss = transform.parent.parent.GetComponent<HHWK_CE_Boss>();
|
||||
FishResourcesData fishResourcesData;
|
||||
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_CE_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["Skill1EffectSay"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventComeEnd()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("skill1", 0.3f);
|
||||
|
||||
|
||||
}
|
||||
public void EffectBomb()
|
||||
{
|
||||
transform.parent.GetChild(1).gameObject.SetActive(true);
|
||||
FishResourcesData fishResourcesData;
|
||||
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_CE_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("skill"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["skill"]);
|
||||
|
||||
}
|
||||
}
|
||||
bool isEnd = false;
|
||||
public void eventSkill1End()
|
||||
|
||||
@@ -15,8 +15,8 @@ public class Eff_changE_StageEvent : MonoBehaviour
|
||||
}
|
||||
public void eventFlyEnd()
|
||||
{
|
||||
hHWK_CE_Boss.defaultAnim.gameObject.SetActive(true);
|
||||
hHWK_CE_Boss.stageAnim.gameObject.SetActive(false);
|
||||
hHWK_CE_Boss.defaultAnim.transform.parent.gameObject.SetActive(true);
|
||||
hHWK_CE_Boss.stageAnim.transform.parent.gameObject.SetActive(false);
|
||||
hHWK_CE_Boss.defaultAnim.CrossFade("idle1", 0.3f);
|
||||
hHWK_CE_Boss.init?.Invoke("2");
|
||||
hHWK_CE_Boss.isMove = true;
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
|
||||
public class Eff_lm_AniEvent : MonoBehaviour
|
||||
{
|
||||
int a=0;
|
||||
HHWK_BLM_Boss hHWK_BLM_Boss;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_BLM_Boss = GetComponentInParent<HHWK_BLM_Boss>();
|
||||
}
|
||||
int a=0;
|
||||
public void EventTrample1()
|
||||
{
|
||||
if (a == 4)
|
||||
@@ -12,7 +17,27 @@ public class Eff_lm_AniEvent : MonoBehaviour
|
||||
a++;
|
||||
|
||||
}
|
||||
public void EndJump()
|
||||
public void eventTaVideo()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_BLM_Boss.fishTypeID];
|
||||
if (fishResourcesData.moveAudio != null && fishResourcesData.moveAudio.Count > 0)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.moveAudio[0]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventAoAoJiaoVideo()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_BLM_Boss.fishTypeID];
|
||||
if (fishResourcesData.moveAudio != null && fishResourcesData.moveAudio.Count > 0)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.moveAudio[1]);
|
||||
|
||||
}
|
||||
}
|
||||
public void EndJump()
|
||||
{
|
||||
transform.parent.parent.GetComponent<HHWK_BLM_Boss>().ani_LMToLong.SetActive(true);
|
||||
//放特效
|
||||
|
||||
@@ -11,21 +11,7 @@ public class Eff_longDie_AniEvent : MonoBehaviour
|
||||
hHWK_BLM_Boss = transform.parent.parent.GetComponent<HHWK_BLM_Boss>();
|
||||
}
|
||||
bool isFirst=true;
|
||||
//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()
|
||||
{
|
||||
hHWK_BLM_Boss.ani_LongDieState3.SetActive(true);
|
||||
@@ -46,7 +32,17 @@ public class Eff_longDie_AniEvent : MonoBehaviour
|
||||
Destroy(transform.parent.parent.gameObject);
|
||||
isFirst = false;
|
||||
}
|
||||
/*
|
||||
public void Jiao()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_BLM_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("Pen"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["Pen"]);
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
1. No dll files were provided to AssetRipper.
|
||||
|
||||
@@ -26,6 +26,16 @@ public class Eff_longDie_AniEvent1 : MonoBehaviour
|
||||
isfirst = false;
|
||||
|
||||
}
|
||||
public void Jiao()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_BLM_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("Pen"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["Pen"]);
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
|
||||
@@ -2,12 +2,30 @@
|
||||
|
||||
public class Eff_longSkill1_AniEvent : MonoBehaviour
|
||||
{
|
||||
public void End()
|
||||
HHWK_BLM_Boss hHWK_BLM_Boss;
|
||||
public void Awake()
|
||||
{
|
||||
hHWK_BLM_Boss = GetComponentInParent <HHWK_BLM_Boss>();
|
||||
|
||||
}
|
||||
|
||||
public void End()
|
||||
{
|
||||
transform.parent.parent.GetComponent<HHWK_BLM_Boss>().ani_LongDieState2.SetActive(true);
|
||||
//放特效
|
||||
transform.parent.gameObject.SetActive(false);
|
||||
}
|
||||
public void MouseEffect()
|
||||
{
|
||||
//FishResourcesData fishResourcesData;
|
||||
//fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_BLM_Boss.fishTypeID];
|
||||
//if (fishResourcesData.dieAudio != null)
|
||||
//{
|
||||
// AudioManager.Instance.PlayerFX(fishResourcesData.dieAudio[0]);
|
||||
|
||||
//}
|
||||
}
|
||||
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
|
||||
@@ -13,12 +13,19 @@ public class Eff_longSkill2_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void EffectSkill()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_BLM_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null&& fishResourcesData.dieGlodAduio.ContainsKey("you"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["you"]);
|
||||
|
||||
}
|
||||
}
|
||||
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];
|
||||
|
||||
@@ -27,6 +34,8 @@ public class Eff_longSkill2_AniEvent : MonoBehaviour
|
||||
{
|
||||
yield return new WaitForSeconds(0.15f);
|
||||
Instantiate(obj, tra.position, Quaternion.identity, tra).transform.GetChild(0).GetComponent<TextMeshProUGUI>().text=CoinScript.NumAdd(item.Amount.ToString());
|
||||
AudioManager.Instance.PlayerFX(61009);
|
||||
|
||||
}
|
||||
}
|
||||
public void End()
|
||||
|
||||
@@ -11,6 +11,17 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
{
|
||||
skillAnimation = GetComponent<Animation>();
|
||||
HHWK_ShaSeng_Boss = transform.parent.parent.GetComponent<HHWK_ShaSeng_Boss>();
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("come"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["come"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventComeVoice()
|
||||
{
|
||||
|
||||
}
|
||||
public void EventComeEnter()
|
||||
{
|
||||
@@ -26,15 +37,24 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
public void idleEnter()
|
||||
{
|
||||
nextAnimationClip = "skill1";
|
||||
|
||||
}
|
||||
public void idelEnd()
|
||||
{
|
||||
skillAnimation.CrossFade(nextAnimationClip, 0.3f);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("SDQ"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["SDQ"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void skill1Enter()
|
||||
{
|
||||
nextAnimationClip = "skill2";
|
||||
|
||||
|
||||
}
|
||||
public void eventEffect1()
|
||||
{
|
||||
@@ -43,7 +63,14 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
HHWK_ShaSeng_Boss.obj_Skill102Effect.SetActive(true);
|
||||
HHWK_ShaSeng_Boss.obj_Skill103Effect.SetActive(true);
|
||||
HHWK_ShaSeng_Boss.BigPrize(2, 4);
|
||||
}
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("Luo"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["Luo"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventSkill1End()
|
||||
{
|
||||
HHWK_ShaSeng_Boss.obj_Skill101Effect.SetActive(false);
|
||||
@@ -51,22 +78,39 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
HHWK_ShaSeng_Boss.obj_Skill103Effect.SetActive(false);
|
||||
skillAnimation.CrossFade(nextAnimationClip, 0.3f);
|
||||
|
||||
|
||||
|
||||
}
|
||||
int count = 0;
|
||||
public void eventEffect2()
|
||||
{
|
||||
count++;
|
||||
nextAnimationClip = "skill1";
|
||||
HHWK_ShaSeng_Boss.obj_Skill2Effect.SetActive(true);
|
||||
HHWK_ShaSeng_Boss.BigPrize(2, 4);
|
||||
|
||||
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("ShuaiGun"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["ShuaiGun"]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void eventBroken()
|
||||
{
|
||||
|
||||
|
||||
HHWK_ShaSeng_Boss.obj_Skill2Effect.SetActive(true);
|
||||
HHWK_ShaSeng_Boss.BigPrize(2, 4);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("SuiBoLi"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["SuiBoLi"]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void eventSkill2End()
|
||||
@@ -82,6 +126,13 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
else
|
||||
{
|
||||
skillAnimation.CrossFade(nextAnimationClip, 0.3f);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["SDQ"]);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,14 @@ public class Eff_tangseng_AniEvent : MonoBehaviour
|
||||
hWK_TS_Boss.skillEffect.GetChild(0).gameObject.SetActive(true);
|
||||
hWK_TS_Boss.skillEffect.GetChild(1).gameObject.SetActive(false);
|
||||
hWK_TS_Boss.skillEffect.GetChild(2).gameObject.SetActive(false);
|
||||
}
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_TS_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("heShou"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["heShou"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventEffect2()
|
||||
{
|
||||
hWK_TS_Boss.skillEffect.GetChild(1).gameObject.SetActive(true);
|
||||
@@ -28,10 +35,22 @@ public class Eff_tangseng_AniEvent : MonoBehaviour
|
||||
hWK_TS_Boss.skillEffect.GetChild(2).gameObject.SetActive(true);
|
||||
hWK_TS_Boss.skillEffect.GetChild(0).gameObject.SetActive(false);
|
||||
hWK_TS_Boss.skillEffect.GetChild(1).gameObject.SetActive(false);
|
||||
|
||||
}
|
||||
public void eventSkill2()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_TS_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("Zhang"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["Zhang"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventSkill1End()
|
||||
{
|
||||
hWK_TS_Boss.BigPrize();
|
||||
|
||||
hWK_TS_Boss.BigPrize();
|
||||
|
||||
anim.Play("skill_idle");
|
||||
index++;
|
||||
|
||||
@@ -10,6 +10,13 @@ public class Eff_tsgzSkill_AniEvent : MonoBehaviour
|
||||
public void eventComeEnd()
|
||||
{
|
||||
hHWK_TSGZ_Boss.skillAnim.CrossFade("skill1", 0.3f);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_TSGZ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("Shanzi"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["Shanzi"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventSkill1Effect()
|
||||
{
|
||||
@@ -32,11 +39,29 @@ public class Eff_tsgzSkill_AniEvent : MonoBehaviour
|
||||
public void eventSkill2End()
|
||||
{
|
||||
hHWK_TSGZ_Boss.skillAnim.CrossFade("skill_rotation", 0.3f);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_TSGZ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("End"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["End"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventRotationEnd()
|
||||
{
|
||||
Destroy(hHWK_TSGZ_Boss.gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
public void eventShanAppear()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_TSGZ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("ShanShanzi"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["ShanShanzi"]);
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
|
||||
@@ -16,6 +16,13 @@ public class Eff_yilongSkill_AniEvent : MonoBehaviour
|
||||
public void eventSkillEnd()
|
||||
{
|
||||
hHWK_YL_BOSS.dieAnim.Play("fly");
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_YL_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("fly"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["fly"]);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public void eventFlyEnd()
|
||||
@@ -27,6 +34,13 @@ public class Eff_yilongSkill_AniEvent : MonoBehaviour
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
hHWK_YL_BOSS.dieAnim.Play("fall");
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_YL_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("fall"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["fall"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void eventFallBombTask()
|
||||
{
|
||||
|
||||
@@ -5,9 +5,11 @@ public class Eff_yilong_AniEvent : MonoBehaviour
|
||||
Animation animation;
|
||||
public string nextClip;
|
||||
public GameObject obj_EffectFire;
|
||||
public HHWK_YL_BOSS hHWK_YL_BOSS;
|
||||
private void Awake()
|
||||
{
|
||||
animation = GetComponent<Animation>();
|
||||
hHWK_YL_BOSS=GetComponentInParent<HHWK_YL_BOSS>();
|
||||
}
|
||||
public void eventComeEnter()
|
||||
{
|
||||
@@ -27,7 +29,13 @@ public class Eff_yilong_AniEvent : MonoBehaviour
|
||||
//喷火特效播放
|
||||
if (obj_EffectFire.activeSelf)
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_YL_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.moveAudio.Count>0)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.moveAudio[0]);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -56,11 +64,18 @@ public class Eff_yilong_AniEvent : MonoBehaviour
|
||||
public void eventIdle2Enter()
|
||||
{
|
||||
nextClip = "idle1";
|
||||
|
||||
}
|
||||
public void eventIdleEnd()
|
||||
{
|
||||
animation.CrossFade(nextClip, 0.3f);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_YL_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.moveAudio.Count > 1)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.moveAudio[1]);
|
||||
|
||||
}
|
||||
if (obj_EffectFire.activeSelf)
|
||||
{
|
||||
obj_EffectFire.SetActive(false);
|
||||
@@ -69,7 +84,13 @@ public class Eff_yilong_AniEvent : MonoBehaviour
|
||||
public void eventIdle1End()
|
||||
{
|
||||
animation.CrossFade(nextClip, 0.3f);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hHWK_YL_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.moveAudio.Count > 3)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.moveAudio[3]);
|
||||
|
||||
}
|
||||
if (obj_EffectFire.activeSelf)
|
||||
{
|
||||
obj_EffectFire.SetActive(false);
|
||||
|
||||
@@ -2,9 +2,25 @@
|
||||
|
||||
public class Eff_yuxiSkill2_AniEvent : MonoBehaviour
|
||||
{
|
||||
HHWK_YX_BOSS hWK_YX_BOSS;
|
||||
private void Awake()
|
||||
{
|
||||
hWK_YX_BOSS = GetComponentInParent<HHWK_YX_BOSS>();
|
||||
}
|
||||
public void End()
|
||||
{
|
||||
Destroy( transform.parent.parent.parent.parent.gameObject);
|
||||
}
|
||||
public void EffectSkillEnter()
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_YX_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null)
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["fall"]);
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["End"]);
|
||||
}
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
@@ -2,10 +2,32 @@
|
||||
|
||||
public class Eff_yuxiSkill_AniEvent : MonoBehaviour
|
||||
{
|
||||
public void playSkill1()
|
||||
HHWK_YX_BOSS hWK_YX_BOSS;
|
||||
private void Awake()
|
||||
{
|
||||
hWK_YX_BOSS = GetComponentInParent<HHWK_YX_BOSS>();
|
||||
}
|
||||
public void playSkill1()
|
||||
{
|
||||
transform.parent.parent.GetComponent<HHWK_YX_BOSS>(). Skill1.SetActive(true);
|
||||
transform.parent.parent.GetComponent<HHWK_YX_BOSS>().BigPrizeAll();
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_YX_BOSS.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null)
|
||||
{
|
||||
if (fishResourcesData.dieGlodAduio.ContainsKey("LongFly"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["LongFly"]);
|
||||
|
||||
}
|
||||
if (fishResourcesData.dieGlodAduio.ContainsKey("fall"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["fall"]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
@@ -11,11 +11,25 @@ public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
{
|
||||
hWK_ZBJ_Boss = GetComponentInParent<HHWK_ZBJ_Boss>();
|
||||
anim = GetComponent<Animation>();
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_ZBJ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("come"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["come"]);
|
||||
|
||||
}
|
||||
}
|
||||
int index=0;
|
||||
public void eventComeEnd()
|
||||
{
|
||||
anim.Play("skill_jump");
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_ZBJ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("jumpenter"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["jumpenter"]);
|
||||
|
||||
}
|
||||
}
|
||||
public void startEffect()
|
||||
{
|
||||
@@ -28,6 +42,13 @@ public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
hWK_ZBJ_Boss.BigPrize(2,4);
|
||||
hWK_ZBJ_Boss.transform.GetChild(2).gameObject.SetActive(true);
|
||||
hWK_ZBJ_Boss.transform.GetChild(3).gameObject.SetActive(false);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_ZBJ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("JumpFall"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["JumpFall"]);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,14 +56,33 @@ public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
{
|
||||
index++;
|
||||
hWK_ZBJ_Boss.BigPrize(2,4);
|
||||
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_ZBJ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("RengPaZi"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["RengPaZi"]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void eventSkill1End()
|
||||
{
|
||||
anim.Play("skill_rush");
|
||||
|
||||
|
||||
{
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_ZBJ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("RengPaZiSay"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["RengPaZiSay"]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
public void eventSkill2End()
|
||||
{
|
||||
@@ -54,7 +94,13 @@ public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
if (index==6)
|
||||
{
|
||||
anim.Play("skill_end");
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[hWK_ZBJ_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("End"))
|
||||
{
|
||||
AudioManager.Instance.PlayerFX(fishResourcesData.dieGlodAduio["End"]);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -64,6 +110,7 @@ public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
public void AniEnd()
|
||||
{
|
||||
Destroy(hWK_ZBJ_Boss.gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user