C# Class RedBlueGames.Tools.ObjectPool

Simple object pooling class
Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: redbluegames/rb-unity-tools

Public Methods

Method Description
GetPooledObject ( ) : GameObject

Gets the next available pooled object. If full, and flagged to grow, it will create a new object and add it to the pool.

Private Methods

Method Description
AddObjectToPool ( ) : GameObject
Awake ( ) : void

Method Details

GetPooledObject() public method

Gets the next available pooled object. If full, and flagged to grow, it will create a new object and add it to the pool.
public GetPooledObject ( ) : GameObject
return UnityEngine.GameObject