Méthode | 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.
|
Méthode | Description | |
---|---|---|
LoadPrefab ( ) : bool |
public static CreatePool ( string prefabPath, |
||
prefabPath | string | Prefab path at Resources folder. |
itemsRoot | Root for new items. | |
Résultat |
public Get ( bool &isNew ) : IPoolObject | ||
isNew | bool | Is instance was created during this call. |
Résultat | IPoolObject |
public Recycle ( IPoolObject obj ) : void | ||
obj | IPoolObject | Instance to recycle. |
Résultat | void |