Method | Description | |
---|---|---|
CreatePool ( string prefabPath, |
Creates new pool container for specified prefab.
|
|
Get ( ) : IPoolObject |
Get new instance of prefab from pool.
|
|
Get ( bool &isNew ) : IPoolObject |
Get new instance of prefab from pool.
|
|
Recycle ( IPoolObject obj ) : void |
Recycle specified instance to pool.
|
Method | Description | |
---|---|---|
LoadPrefab ( ) : bool |
public static CreatePool ( string prefabPath, |
||
prefabPath | string | Prefab path at Resources folder. |
itemsRoot | Root for new items. | |
return |
public Get ( bool &isNew ) : IPoolObject | ||
isNew | bool | Is instance was created during this call. |
return | IPoolObject |
public Recycle ( IPoolObject obj ) : void | ||
obj | IPoolObject | Instance to recycle. |
return | void |