Ejemplo n.º 1
0
 public void PoolDestroy()
 {
     if (ParentObj != null)
     {
         ParentObj.RemoveChild(this);
     }
     if (poolref)
     {
         poolref.Unspawn();
     }
     else
     {
         Destroy(this.gameObject);
     }
 }