private void OnDisable()
        {
            PlayDisableAnimation();

            this.RemoveObserver(OnTurnCheck, TurnOrderController.TurnCheckNotification, owner);
            this.RemoveObserver(OnStatCounterWillChange, Stats.WillChangeNotification(StatTypes.CTR), stats);
        }
 private void OnEnable()
 {
     myStats = GetComponentInParent <Stats>();
     if (myStats)
     {
         this.AddObserver(OnCounterWillChange, Stats.WillChangeNotification(StatTypes.CTR), myStats);
     }
 }
 private void OnDisable()
 {
     this.RemoveObserver(OnLevelChange, Stats.DidChangeNotification(StatTypes.LVL));
     this.RemoveObserver(OnExperienceException, Stats.WillChangeNotification(StatTypes.EXP));
 }
 private void OnDisable()
 {
     this.RemoveObserver(OnHPWillChange, Stats.WillChangeNotification(StatTypes.HP), stats);
     this.RemoveObserver(OnMaxPDidChange, Stats.DidChangeNotification(StatTypes.MHP), stats);
 }
 private void OnDisable()
 {
     this.RemoveObserver(OnCounterWillChange, Stats.WillChangeNotification(StatTypes.CTR), myStats);
 }
Пример #6
0
 private void OnDisable()
 {
     this.RemoveObserver(OnMPWillChange, Stats.WillChangeNotification(StatTypes.MP), stats);
     this.RemoveObserver(OnMMPDidChange, Stats.DidChangeNotification(StatTypes.MMP), stats);
     this.RemoveObserver(OnTurnBegan, TurnOrderController.TurnBeganNotification, unit);
 }
 private void OnDisable()
 {
     this.RemoveObserver(OnCounterWillChange, Stats.WillChangeNotification(StatTypes.CTR), myStats);
     this.RemoveObserver(OnAutomaticHitCheck, HitRate.AutomaticHitCheckNotification);
 }
Пример #8
0
 private void OnDisable()
 {
     this.RemoveObserver(OnExpWillChange, Stats.WillChangeNotification(StatTypes.EXP), stats);
     this.RemoveObserver(OnExpDidChange, Stats.DidChangeNotification(StatTypes.EXP), stats);
 }