public virtual void OnDestroy() { if (_event != null) { _event.Remove(); } }
public override void OnDisable() { base.OnDisable(); if (_event != null) { _event.Remove(); } }
public virtual void OnDisable() { if (this == null) { attackTimer.onFinished -= OnAttackReady; attackTimer.Stop(); } if (_event != null) { _event.Remove(); } GameManager.updatables = GameManager.updatables.Remove(this); }