private KeyValuePair <int, string> DictionaryKey(PooledObject prefab)
 {
     return(new KeyValuePair <int, string>(prefab.GetInstanceID(), prefab.tag));
 }
Beispiel #2
0
 public void AddObject(PooledObject obj)
 {
     obj.gameObject.SetActive(false);
     availableObjects.Add(obj);
 }