private Catche _Query(GameObject prefab) { Catche catche; if (_Pool.TryGetValue(prefab, out catche)) { return(catche); } catche = new Catche(prefab); _Pool.Add(prefab, catche); return(catche); }
public GameObject Instantiate(GameObject prefab) { Catche queue = _Query(prefab); return(queue.Instantiate()); }