Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
 public void SetMyParentPool()
 {
     this.myPool = ObjectManager.Instance.tilePool;
 }