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