Exemple #1
0
 void RegisterEventCallbacks()
 {
     DeathEventInfo.RegisterListener(OnUnitDied);
     HPChangedEventInfo.RegisterListener(OnHPChange);
     MPChangedEventInfo.RegisterListener(OnMPChange);
     UnitSpawnEventInfo.RegisterListener(OnUnitSpawn);
     CharacterTurnOverEventInfo.RegisterListener(OnTurnOver);
 }
Exemple #2
0
        void RegisterEventCallbacks()
        {
            SelectedObjectEventInfo.RegisterListener(OnHighlightSelected);
            CharacterReadyEventInfo.RegisterListener(OnCharacterReady);

            BattleWonEventInfo.RegisterListener(OnBattleWon);
            HPChangedEventInfo.RegisterListener(OnHPChange);
            MPChangedEventInfo.RegisterListener(OnMPChange);
            HeroDeathEventInfo.RegisterListener(OnHeroDeath);
            DeathEventInfo.RegisterListener(OnUnitDied);
            UnitSpawnEventInfo.RegisterListener(OnUnitSpawn);
        }
 void RegisterEventCallbacks()
 {
     UnitSpawnEventInfo.RegisterListener(OnUnitSpawn);
     DeathEventInfo.RegisterListener(OnUnitDied);
 }