private void OnDestroy() { EventMessenger.RemoveListener <HeroData>(SelectionEvents.HERO_FRAME_SELECTED, OnMenuHeroSelected); EventMessenger.RemoveListener <HeroData>(SelectionEvents.HERO_FRAME_DESELECTED, OnMenuHeroDeselected); EventMessenger.RemoveListener(SceneEvents.BATTLE_START_SIGNAL, OnBattleStart); EventMessenger.RemoveListener(SceneEvents.REWARDING_COMPLETE, LoadMenu); }
private void OnDestroy() { EventMessenger.RemoveListener <HeroData>(SelectionEvents.HERO_FRAME_SELECTED, PlaySelectionSound); EventMessenger.RemoveListener <HeroData>(SelectionEvents.HERO_FRAME_DESELECTED, PlaySelectionSound); EventMessenger.RemoveListener <BattleHero, int>(FightEvents.DAMAGE_DONE, PlayAttackSound); EventMessenger.RemoveListener(SceneEvents.BATTLE_START_SIGNAL, PlayButtonSound); }
private void OnDestroy() { EventMessenger.RemoveListener(FightEvents.ATTACK_SIGNAL_GIVEN, AttackSignalGiven); EventMessenger.RemoveListener(FightEvents.ATTACK_COMPLETED, AttackCompleted); EventMessenger.RemoveListener <BattleHero, int>(FightEvents.DAMAGE_DONE, DamageDoneOnHero); EventMessenger.RemoveListener <BattleHero>(FightEvents.HERO_DIED, OnHeroDied); EventMessenger.RemoveListener(FightEvents.ALL_ALLY_DEAD, OnDefeat); EventMessenger.RemoveListener(FightEvents.ALL_ENEMY_DEAD, OnVictory); EventMessenger.RemoveListener(SaveEvents.LOADING_SAVE_COMPLETED, LoadBattleSceneSettings); }
private void OnDestroy() { EventMessenger.RemoveListener(LoadingEvents.LOADING_STARTED, StartLoading); EventMessenger.RemoveListener(LoadingEvents.LOADING_FINISHED, LoadingFinished); EventMessenger.RemoveListener <int, int>(LoadingEvents.LOADING_PROGRESS, UpdateLoadingBar); }
private void UnRegisterEvent() { Debug.Log("Stop Listening!"); EventMessenger.RemoveListener(EventMessage.ID.MyEventID, m_eventCallback); }
private void OnDestroy() { EventMessenger.RemoveListener <HeroBase>(SelectionEvents.HERO_FRAME_CLICKED_DOWN, OnHeroFrameClicked); EventMessenger.RemoveListener <Action>(SelectionEvents.HERO_FRAME_CLICKED_UP, OnHeroFrameMouseUp); }
private void OnDestroy() { EventMessenger.RemoveListener(SceneEvents.REWARD_MATCH_COUNT, AddNewHero); }
private void OnDestroy() { EventMessenger.RemoveListener(SaveEvents.SAVE_GAME_STATE, SaveGameData); EventMessenger.RemoveListener(SaveEvents.GAME_RESET, DeleteSave); }