Example #1
0
 public void ReturnToPool(T pooledObject)
 {
     pooledObject.GameObject.gameObject.transform.SetParent(transform);
     pooledObject.GameObject.gameObject.SetActive(false);
     PoolStack.Push(pooledObject);
 }
Example #2
0
 public void ReturnToPool(T pooledObject)
 {
     pooledObject.GameObject.gameObject.SetActive(false);
     PoolStack.Push(pooledObject);
 }
Example #3
0
 private void OnDisable()
 {
     stack.Push(this);
 }