C# Class Pool, LoopScrollRect

Inheritance: MonoBehaviour
Mostrar archivo Open project: qiankanglai/LoopScrollRect Class Usage Examples

Public Methods

Method Description
NextAvailableObject ( bool autoActive ) : GameObject
Pool ( string poolName, GameObject poolObjectPrefab, GameObject rootPoolObj, int initialCount, PoolInflationType type ) : System.Collections.Generic
ReturnObjectToPool ( PoolObject po ) : void

Private Methods

Method Description
AddObjectToPool ( PoolObject, po ) : void
populatePool ( int initialCount ) : void

Method Details

NextAvailableObject() public method

public NextAvailableObject ( bool autoActive ) : GameObject
autoActive bool
return GameObject

Pool() public method

public Pool ( string poolName, GameObject poolObjectPrefab, GameObject rootPoolObj, int initialCount, PoolInflationType type ) : System.Collections.Generic
poolName string
poolObjectPrefab GameObject
rootPoolObj GameObject
initialCount int
type PoolInflationType
return System.Collections.Generic

ReturnObjectToPool() public method

public ReturnObjectToPool ( PoolObject po ) : void
po PoolObject
return void