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