UnityPooler.PoolableGameObject.IncrementPool C# (CSharp) Метод

IncrementPool() публичный Метод

Adds one object to the pool
public IncrementPool ( ) : void
Результат void
        public void IncrementPool()
        {
            AddToPool(1);
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Increments the prefab's or GameObject's object pool.
        /// </summary>
        /// <param name="objToInc">The prefab or GameObject to increment.</param>
        public static void IncrementPoolWithObj(GameObject objToInc)
        {
            PoolableGameObject poolable = objToInc.GetComponent <PoolableGameObject>();

            if (poolable == null)
            {
                Debug.LogErrorFormat(REQUIRES_COMP, objToInc.name, "IncrementPool");
                return;
            }

            poolable.IncrementPool();
        }
All Usage Examples Of UnityPooler.PoolableGameObject::IncrementPool