예제 #1
0
 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);
 }
예제 #2
0
    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);
    }
예제 #3
0
 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);
 }
예제 #4
0
 private void OnDestroy()
 {
     EventMessenger.RemoveListener(LoadingEvents.LOADING_STARTED, StartLoading);
     EventMessenger.RemoveListener(LoadingEvents.LOADING_FINISHED, LoadingFinished);
     EventMessenger.RemoveListener <int, int>(LoadingEvents.LOADING_PROGRESS, UpdateLoadingBar);
 }
예제 #5
0
 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);
 }
예제 #7
0
 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);
 }