public IPoolable PoolOut() { IPoolable item = null; if (_stack.Count == 0) { item = _spawner.SpawnNew <IPoolable>(); } else { item = _stack.Pop(); } item.Active(); return(item); }
public IPoolable PoolOut() { IPoolable item = null; if (_stack.Count == 0) { item = _spawner.SpawnNew <IPoolable>(); } else { item = _stack.Pop(); } item.Active(); return(item); }