Example #1
0
 private void Start()
 {
     BattleEvents.CharacterTurnEvent.AddListener(this);
     BattleEvents.ChooseTargetEvent.AddListener(this);
     BattleEvents.EndOfTurnEvent.AddListener(this);
     MMEventManager.AddListener(this);
 }
Example #2
0
        private void OnEnable()
        {
            EventSystem.current.SetSelectedGameObject(null);
            EventSystem.current.SetSelectedGameObject(mainMenuFirstSelected);

            MMEventManager.AddListener(this);
            characterTurnEvent.AddListener(this);
            endOfTurnEvent.AddListener(this);

            isEnabled = true;
        }
Example #3
0
 public static void MMEventStartListening <EventType>(this DHEventListener <EventType> caller) where EventType : struct
 {
     MMEventManager.AddListener <EventType>(caller);
 }
 private void Start() => MMEventManager.AddListener(this);