summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs
blob: c6e9bba6fafb292aba5f920a20f87a57383b66a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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");
	}

}