public void Clear() { for (int i = 0; i < _activeBricks.Count; i++) { _brickPool.Recycle(_activeBricks[i]); } _activeBricks.Clear(); }
public void Recycle(GameObject go) { GenericPool <T> pool = Find(go.name); if (pool != null) { pool.Recycle(go); } }