public static void MakeFastPool <T>(ref FastObjectPool <T> objectPool, string prefabPath, Transform parent, int size) where T : Component { GameObject LoadObj = Resources.Load <GameObject>(prefabPath); if (LoadObj != null) { objectPool = new FastObjectPool <T>(parent, LoadObj, size); } }
public void SetMyParentPool() { this.myPool = ObjectManager.Instance.tilePool; }