summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs b/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs
index c6e9bba..54df05b 100644
--- a/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs
+++ b/WorldlineKeepers/Assets/Scripts/Tests/TestEvent.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using WK;
-public class TestEvent : MonoBehaviour
+public class TestEvent : MonoBehaviour, INotification
{
#region εΊεˆ—εŒ–
@@ -28,13 +28,15 @@ public class TestEvent : MonoBehaviour
private void OnEnable()
{
- GlobalEventManager.Instance.Register("Health.BurnKill", OnEventCheck);
- GlobalEventManager.Instance.Notify("Health.BurnKill");
+ //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)
{
- Debug.Log("msg");
+ Debug.Log("msg" + p[0]);
}
}