public void ReturnToPool(T pooledObject) { pooledObject.GameObject.gameObject.transform.SetParent(transform); pooledObject.GameObject.gameObject.SetActive(false); PoolStack.Push(pooledObject); }
public void ReturnToPool(T pooledObject) { pooledObject.GameObject.gameObject.SetActive(false); PoolStack.Push(pooledObject); }
private void OnDisable() { stack.Push(this); }