198 lines
6.9 KiB
C#
198 lines
6.9 KiB
C#
using UnityEngine;
|
|
|
|
public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
|
{
|
|
//public string nextAnimationClip;
|
|
//public Animation skillAnimation;
|
|
//public HHWK_ShaSeng_Boss HHWK_ShaSeng_Boss;
|
|
|
|
// private void Awake()
|
|
// {
|
|
// 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()
|
|
//{
|
|
// HHWK_ShaSeng_Boss.transform.position = Vector3.zero;
|
|
// nextAnimationClip = "idle";
|
|
//}
|
|
|
|
//public void eventComeEnd()
|
|
//{
|
|
// skillAnimation.CrossFade(nextAnimationClip, 0.3f);
|
|
|
|
// }
|
|
// 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()
|
|
//{
|
|
// //播放skill01的特效
|
|
// HHWK_ShaSeng_Boss.obj_Skill101Effect.SetActive(true);
|
|
// HHWK_ShaSeng_Boss.obj_Skill102Effect.SetActive(true);
|
|
// HHWK_ShaSeng_Boss.obj_Skill103Effect.SetActive(true);
|
|
// HHWK_ShaSeng_Boss.BigPrize();
|
|
// 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);
|
|
// HHWK_ShaSeng_Boss.obj_Skill102Effect.SetActive(false);
|
|
// 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);
|
|
// 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.BigPrize();
|
|
// 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()
|
|
// {
|
|
|
|
// skillAnimation.CrossFade(nextAnimationClip, 0.3f);
|
|
|
|
// HHWK_ShaSeng_Boss.obj_Skill2Effect.SetActive(false);
|
|
// if (count >= 4)
|
|
// {
|
|
// CreateFishManager.Instance.Id_DieFish_NotFX(HHWK_ShaSeng_Boss.guid);
|
|
|
|
// //Destroy(HHWK_ShaSeng_Boss.gameObject);
|
|
// }
|
|
// 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"]);
|
|
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
/*
|
|
Dummy class. This could have happened for several reasons:
|
|
|
|
1. No 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.
|
|
|
|
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.
|
|
|
|
2. Incorrect dll files were provided to AssetRipper.
|
|
|
|
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)
|
|
|
|
Note: Although assembly publicizing is bad, it alone cannot cause empty scripts. See: https://github.com/AssetRipper/AssetRipper/issues/653
|
|
|
|
3. Assembly Reconstruction has not been implemented.
|
|
|
|
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.
|
|
|
|
See: https://github.com/AssetRipper/AssetRipper/issues/655
|
|
|
|
4. This script is unnecessary.
|
|
|
|
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.
|
|
|
|
5. Script Content Level 0
|
|
|
|
AssetRipper was set to not load any script information.
|
|
|
|
6. Cpp2IL failed to decompile Il2Cpp data
|
|
|
|
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
|
|
|
|
*/
|
|
} |