private void OnDisable() { cache.Clear(); GlobalEventHandler.UnsubscribeEvent <int, object>(Events.ConsoleEvents.CacheEvent, CacheId); GlobalEventHandler.UnsubscribeEvent <int>(Events.ConsoleEvents.CacheEvent, RemoveId); GlobalEventHandler.UnsubscribeEvent <int>(Events.ConsoleEvents.ShowIdEvent, DisplayCacheIds); }
private void OnDisable() { GlobalEventHandler.UnsubscribeEvent <object>("ToggleAI", SwapAgentState); }
private void OnDisable() { GlobalEventHandler.UnsubscribeEvent("Pause", Pause); GlobalEventHandler.UnsubscribeEvent("Resume", Resume); }
private void OnDisable() { // Unsubscribe the AddConsoleOutput from the Event Handler GlobalEventHandler.UnsubscribeEvent <string, Color>(ConsoleEvents.OutputEvent, AddConsoleOutput); }