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