Skip to content
Snippets Groups Projects
Commit f2dce4c5 authored by Erno Lokkila's avatar Erno Lokkila
Browse files

updated event system

parent 8f234ae7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment