Пример #1
0
    public static ObjectPoolController InstantiatePool(int poolSize, ObjectPoolItem item, string poolName)
    {
        ObjectPoolController pool = Instantiate(
            Resources.Load <ObjectPoolController>("Prefabs/ObjectPool")
            );

        pool.name = poolName;
        pool.Init(poolSize, item);
        return(pool);
    }