コード例 #1
0
 public virtual void OnDestroy()
 {
     if (_event != null)
     {
         _event.Remove();
     }
 }
コード例 #2
0
ファイル: Android.cs プロジェクト: Master109/Turn-Based-Chaos
 public override void OnDisable()
 {
     base.OnDisable();
     if (_event != null)
     {
         _event.Remove();
     }
 }
コード例 #3
0
ファイル: Spear.cs プロジェクト: Master109/Turn-Based-Chaos
 public virtual void OnDisable()
 {
     if (this == null)
     {
         attackTimer.onFinished -= OnAttackReady;
         attackTimer.Stop();
     }
     if (_event != null)
     {
         _event.Remove();
     }
     GameManager.updatables = GameManager.updatables.Remove(this);
 }