Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
LoadPrefab ( ) : bool |
public static CreatePool ( string prefabPath, |
||
prefabPath | string | Prefab path at Resources folder. |
itemsRoot | Root for new items. | |
Результат |
public Get ( bool &isNew ) : IPoolObject | ||
isNew | bool | Is instance was created during this call. |
Результат | IPoolObject |
public Recycle ( IPoolObject obj ) : void | ||
obj | IPoolObject | Instance to recycle. |
Результат | void |