private void OnDisable() { BattleEvents.CharacterTurnEvent.RemoveListener(this); BattleEvents.ChooseTargetEvent.RemoveListener(this); BattleEvents.EndOfTurnEvent.RemoveListener(this); MMEventManager.RemoveListener(this); }
public static void MMEventStopListening <EventType>(this DHEventListener <EventType> caller) where EventType : struct { MMEventManager.RemoveListener <EventType>(caller); }
private void OnDisable() { MMEventManager.RemoveListener(this); characterTurnEvent.RemoveListener(this); endOfTurnEvent.RemoveListener(this); }
private void OnDisable() => MMEventManager.RemoveListener(this);