Exemplo n.º 1
0
 public virtual void OnDestroy()
 {
     if (_event != null)
     {
         _event.Remove();
     }
 }
Exemplo n.º 2
0
 public override void OnDisable()
 {
     base.OnDisable();
     if (_event != null)
     {
         _event.Remove();
     }
 }
Exemplo n.º 3
0
 public virtual void OnDisable()
 {
     if (this == null)
     {
         attackTimer.onFinished -= OnAttackReady;
         attackTimer.Stop();
     }
     if (_event != null)
     {
         _event.Remove();
     }
     GameManager.updatables = GameManager.updatables.Remove(this);
 }