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