Exemple #1
0
 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);
 }
Exemple #3
0
 private void OnDisable()
 {
     MMEventManager.RemoveListener(this);
     characterTurnEvent.RemoveListener(this);
     endOfTurnEvent.RemoveListener(this);
 }
 private void OnDisable() => MMEventManager.RemoveListener(this);