diff options
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs b/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs new file mode 100644 index 0000000..c6e9bba --- /dev/null +++ b/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs @@ -0,0 +1,40 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using WK; + +public class TestEvent : MonoBehaviour +{ + #region 序列化 + + #endregion + + #region 公共字段 + + #endregion + + #region 私有字段 + + #endregion + + private void Awake() + { + // 私有字段赋值 + + // 公共字段赋值 + + // 初始化 + } + + private void OnEnable() + { + GlobalEventManager.Instance.Register("Health.BurnKill", OnEventCheck); + GlobalEventManager.Instance.Notify("Health.BurnKill"); + } + + private void OnEventCheck(params object[] p) + { + Debug.Log("msg"); + } + +} |