diff --git a/Assets/Scripts/EventSystem/EventSystem.cs b/Assets/Scripts/EventSystem/EventSystem.cs index 0762879b792341ea32064fd4bc3e843a116b543d..8726731684a1ccf61644067348375e23738dc26b 100644 --- a/Assets/Scripts/EventSystem/EventSystem.cs +++ b/Assets/Scripts/EventSystem/EventSystem.cs @@ -15,9 +15,12 @@ public static class EventSystem public static void EventHappened(EventType name) { + Debug.Log("happened"); if (events.ContainsKey(name)) { - foreach (IAction e in events.Values){ + + Debug.Log("contains: "+events.Values.ToString()); + foreach (IAction e in events[name]){ e.React(name); } }