public static void TriggerEvent(string eventName, GameEventArgs args) { GameEvent thisEvent = null; if (Instance.eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(args); } }