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