コード例 #1
0
 void RemoveSelf()
 {
     if (_projectilePool != null)
     {
         // return to Pool, instead of Destroy
         _projectilePool.ReturnToPool(this);
     }
     else
     {
         Destroy(gameObject);
     }
 }