private void Start() { BattleEvents.CharacterTurnEvent.AddListener(this); BattleEvents.ChooseTargetEvent.AddListener(this); BattleEvents.EndOfTurnEvent.AddListener(this); MMEventManager.AddListener(this); }
private void OnEnable() { EventSystem.current.SetSelectedGameObject(null); EventSystem.current.SetSelectedGameObject(mainMenuFirstSelected); MMEventManager.AddListener(this); characterTurnEvent.AddListener(this); endOfTurnEvent.AddListener(this); isEnabled = true; }
public static void MMEventStartListening <EventType>(this DHEventListener <EventType> caller) where EventType : struct { MMEventManager.AddListener <EventType>(caller); }
private void Start() => MMEventManager.AddListener(this);