private void OnEnable() { cache = new Dictionary <int, object>(); GlobalEventHandler.SubscribeEvent <int, object>(Events.ConsoleEvents.CacheEvent, CacheId); GlobalEventHandler.SubscribeEvent <int>(Events.ConsoleEvents.RemoveEvent, RemoveId); GlobalEventHandler.SubscribeEvent <int>(Events.ConsoleEvents.ShowIdEvent, DisplayCacheIds); }
private void OnEnable() { GlobalEventHandler.SubscribeEvent <object>("ToggleAI", SwapAgentState); }
private void OnEnable() { GlobalEventHandler.SubscribeEvent("Pause", Pause); GlobalEventHandler.SubscribeEvent("Resume", Resume); }
private void OnEnable() { // Subscribe the AddConsoleOutput to the Event Handler GlobalEventHandler.SubscribeEvent <string, Color>(ConsoleEvents.OutputEvent, AddConsoleOutput); }