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