예제 #1
0
        private void OnDisable()
        {
            if (targetUnit == null)
            {
                return;
            }

            battleEvent.RemoveListener(this);
            targetUnit.onDeath -= RemoveTimerAndEffect;
            targetUnit.Unit.recoveredFromOverexertion -= RemoveTimerAndEffect;
        }
예제 #2
0
        private void OnDisable()
        {
            if (!unit)
            {
                return;
            }
            unit.borrowAP       -= BorrowAP;
            unit.parent.onDeath -= OnDeath;

            battleEvent.RemoveListener(this);
            characterTurnEvent.RemoveListener(this);
            endOfTurnEvent.RemoveListener(this);
        }
예제 #3
0
        private void OnDisable()
        {
            if (targetUnit == null)
            {
                return;
            }

            battleEvent.RemoveListener(this);
            BattleEvents.SkipTurnEvent.RemoveListener(this);
            targetUnit.onDeath -= RemoveTimerAndEffect;
            targetUnit.Unit.recoveredFromOverexertion -= RemoveTimerAndEffect;
            if (removeEffectAtCharacterTurn)
            {
                targetUnit.onStatusEvaluation -= RemoveEffectAtStartOfTurn;
            }
            // removeEffectAfterCharacterTurn = false;
            // removeEffectAtCharacterTurn = false;
        }
예제 #4
0
 private void OnDisable()
 {
     battleEvent.RemoveListener(this);
     enemyTurnEvent.RemoveListener(this);
 }