Esempio n. 1
0
 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);
 }
Esempio n. 4
0
 private void OnEnable()
 {
     // Subscribe the AddConsoleOutput to the Event Handler
     GlobalEventHandler.SubscribeEvent <string, Color>(ConsoleEvents.OutputEvent, AddConsoleOutput);
 }