프로퍼티 | 타입 | 설명 | |
---|---|---|---|
initialPoolSize | int | ||
isPoolExpandable | bool | ||
prefab | GameObject |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
pool | List |
메소드 | 설명 | |
---|---|---|
GetObjectFromPool ( Vector2 position, bool active = true ) : GameObject |
Get first game object available inside of pool.
|
|
Start ( ) : void |
Use this for initialization.
|
메소드 | 설명 | |
---|---|---|
Initialize ( ) : void |
Initialize pool.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | GameObject |