summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs
blob: 482595eabf1ec23b52d5593bce9ad6d796b54d03 (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
41
42
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using WK;

public class TestEvent : MonoBehaviour, INotification
{
	#region 序列化
	
	#endregion 
	
	#region 公共字段
	
	#endregion
	
	#region 私有字段
	
	#endregion
	
	private void Awake() 
	{
		// 私有字段赋值
		
		// 公共字段赋值
		
		// 初始化
	}

    private void OnEnable()
    {
        //GlobalEventManager.Instance.Register("Health.BurnKill", OnEventCheck);
        //GlobalEventManager.Instance.Notify("Health.BurnKill");
        this.AddObserver("Health", OnEventCheck);
		this.PostNotification("Health", "asdasd");
    }

	private void OnEventCheck(params object[] p)
	{
        LogHelper.Log("msg" + p[0]);
	}

}