private void OnDisable() { if (targetUnit == null) { return; } battleEvent.RemoveListener(this); targetUnit.onDeath -= RemoveTimerAndEffect; targetUnit.Unit.recoveredFromOverexertion -= RemoveTimerAndEffect; }
private void OnDisable() { if (!unit) { return; } unit.borrowAP -= BorrowAP; unit.parent.onDeath -= OnDeath; battleEvent.RemoveListener(this); characterTurnEvent.RemoveListener(this); endOfTurnEvent.RemoveListener(this); }
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; }
private void OnDisable() { battleEvent.RemoveListener(this); enemyTurnEvent.RemoveListener(this); }