Esempio n. 1
0
 private void doRealRealDestroy()
 {
     if (this._effectHandle != null && this._effectHandle.Raw != null)
     {
         ResourceHandle.SafeRelease(ref this._effectHandle);
     }
     base.Destroy();
     if (base.unit != null)
     {
         base.unit.effectManager.RemoveEffect(this);
     }
 }
Esempio n. 2
0
 protected virtual void OnDestroy()
 {
     BaseAction.s_stat.destroyCnt++;
     if (this.gameObject)
     {
     }
     if (this._nodeGoHandle != null)
     {
         BaseAction.s_stat.destroyNodeCnt++;
         ResourceHandle.SafeRelease(ref this._nodeGoHandle);
         this._nodeGo = null;
     }
     if (this._nodeGo != null)
     {
         BaseAction.ReleaseNode(this._nodeGo);
         this._nodeGo = null;
     }
 }