示例#1
0
 void RegisterEventCallbacks()
 {
     DeathEventInfo.RegisterListener(OnUnitDied);
     HPChangedEventInfo.RegisterListener(OnHPChange);
     MPChangedEventInfo.RegisterListener(OnMPChange);
     UnitSpawnEventInfo.RegisterListener(OnUnitSpawn);
     CharacterTurnOverEventInfo.RegisterListener(OnTurnOver);
 }
示例#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);
        }