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