Method | Description | |
---|---|---|
GetObjectFromPool ( string poolName, bool autoActive = true, int autoCreate ) : GameObject |
Returns an available object from the pool OR null in case the pool does not have any object available & can grow size is false.
|
|
InitPool ( string poolName, int size, PoolInflationType type = PoolInflationType.DOUBLE ) : void | ||
ReturnObjectToPool ( GameObject go ) : void |
Return obj to the pool
|
|
ReturnTransformToPool ( Transform t ) : void |
Return obj to the pool
|
public GetObjectFromPool ( string poolName, bool autoActive = true, int autoCreate ) : GameObject | ||
poolName | string | |
autoActive | bool | |
autoCreate | int | |
return | GameObject |
public InitPool ( string poolName, int size, PoolInflationType type = PoolInflationType.DOUBLE ) : void | ||
poolName | string | |
size | int | |
type | PoolInflationType | |
return | void |
public ReturnObjectToPool ( GameObject go ) : void | ||
go | GameObject | |
return | void |
public ReturnTransformToPool ( Transform t ) : void | ||
t | Transform | |
return | void |