Exemple #1
0
 public void AddObject(PooledObject obj)
 {
     obj.gameObject.SetActive(false);
     availableObjects.Add(obj);
 }
Exemple #2
0
 public void RemoveObject(PooledObject obj)
 {
     availableObjects.Remove(obj);
 }
Exemple #3
0
 public int FindIndex(PooledObject obj)
 {
     return(availableObjects.FindIndex((val) => { return val == obj; }));
 }