void OnDestroy() { SceneManager.sceneLoaded -= OnSceneLoading; EventCoordinator.StopListening(EventName.Input.StartGame(), OnStartGame); EventCoordinator.StopListening(EventName.System.Environment.EndMatch(), OnEndGame); EventCoordinator.StopListening(EventName.System.Environment.CleanScene(), OnSceneClean); EventCoordinator.StopListening(EventName.System.SceneLoaded(), OnSceneLoaded); }
void OnDestroy() { EventCoordinator.StopListening(EventName.Input.CardSelected(), OnModifyResource); }
void OnDestroy() { EventCoordinator.StopListening(EventName.Input.StartGame(), OnGameStart); EventCoordinator.StopListening(EventName.Input.ResetGame(), OnGameReset); EventCoordinator.StopListening(EventName.System.EndGame(), OnEndGame); }
void OnDestroy() { EventCoordinator.StopListening(EventName.System.CardsImported(), OnCardsImported); }
void OnDestroy() { EventCoordinator.StopListening(EventName.Input.CardSelected(), OnCardSelected); }
void OnDestroy() { EventCoordinator.StopListening(EventName.Input.Swipe.FinishRight(), OnSwipeRight); EventCoordinator.StopListening(EventName.Input.Swipe.FinishLeft(), OnSwipeLeft); EventCoordinator.StopListening(EventName.System.MatchStarted(), OnMatchStarted); }
private void OnDestroy() { EventCoordinator.StopListening(eventName, OnPlayerEliminated); }
void OnDestroy() { EventCoordinator.StopListening(EventName.System.Economy.ResourceChanged(), OnResourceChanged); }
void OnDestroy() { EventCoordinator.StopListening(EventName.System.Economy.ModifyResource(), OnModifyResource); }
void OnDestroy() { EventCoordinator.StopListening(EventName.Input.StartGame(), ClearCards); EventCoordinator.StopListening(EventName.System.EndGame(), ClearCards); }
void OnDestroy() { EventCoordinator.StopListening(EventName.System.Story.UnlockEnding(), OnUnlock); EventCoordinator.StopListening(EventName.UI.ShowPostScreen(), OnShow); }
void OnDestroy() { EventCoordinator.StopListening(EventName.Input.CardSelected(), OnCardSelected); EventCoordinator.StopListening(EventName.UI.ShowPostScreen(), OnShowPostScreen); EventCoordinator.StopListening(EventName.Input.ResetGame(), OnReset); }