コード例 #1
0
 void UnregisterEventCallbacks()
 {
     DeathEventInfo.UnregisterListener(OnUnitDied);
     HPChangedEventInfo.UnregisterListener(OnHPChange);
     MPChangedEventInfo.UnregisterListener(OnMPChange);
     UnitSpawnEventInfo.UnregisterListener(OnUnitSpawn);
     CharacterTurnOverEventInfo.UnregisterListener(OnTurnOver);
 }
コード例 #2
0
        public void UnregisterEventCallbacks()
        {
            SelectedObjectEventInfo.UnregisterListener(OnHighlightSelected);
            CharacterReadyEventInfo.UnregisterListener(OnCharacterReady);

            BattleWonEventInfo.UnregisterListener(OnBattleWon);
            HPChangedEventInfo.UnregisterListener(OnHPChange);
            MPChangedEventInfo.UnregisterListener(OnMPChange);
            HeroDeathEventInfo.UnregisterListener(OnHeroDeath);
            DeathEventInfo.UnregisterListener(OnUnitDied);
            UnitSpawnEventInfo.UnregisterListener(OnUnitSpawn);
        }