diff options
author | chai <215380520@qq.com> | 2023-05-13 15:20:20 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-13 15:20:20 +0800 |
commit | 6fb204d494b897907d655b5752196983a82ceba2 (patch) | |
tree | 99b874414e9578cb68be5390b2cf08d2069ca77e /WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs | |
parent | 6c91f1ed6810a57da08a24dd1359f288c443dd75 (diff) |
*misc
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"); + } + +} |