Property | Type | Description | |
---|---|---|---|
initialPoolSize | int | ||
isPoolExpandable | bool | ||
prefab | GameObject |
Property | Type | Description | |
---|---|---|---|
pool | List |
Method | Description | |
---|---|---|
GetObjectFromPool ( Vector2 position, bool active = true ) : GameObject |
Get first game object available inside of pool.
|
|
Start ( ) : void |
Use this for initialization.
|
Method | Description | |
---|---|---|
Initialize ( ) : void |
Initialize pool.
|
Method | Description | |
---|---|---|
CreateNewObject ( ) : GameObject |
Create new game object.
|
|
PrepareObjectToResponse ( GameObject obj, Vector2 position, bool active ) : GameObject |
Prepare game object to response.
|
public GetObjectFromPool ( Vector2 position, bool active = true ) : GameObject | ||
position | Vector2 | Position to be displayed. |
active | bool | To activate or not. |
return | GameObject |