Example #1
0
 public void Destroy(IEntityPool pool)
 {
     if (_toDeleteList.Contains(this) || IsDestroyed())
     {
         return;
     }
     if (pool != null)
     {
         pool.Store(this);
     }
     else
     {
         _toDeleteList.Add(this);
     }
 }