Table of Contents

Class Pool

Namespace
VoxelPlayground.VFX
Assembly
GamePlay.dll
public class Pool
Inheritance
object
Pool

Fields

objsInUse

public List<IRecyclable> objsInUse

Field Value

List<IRecyclable>

objsNotUse

public Queue<IRecyclable> objsNotUse

Field Value

Queue<IRecyclable>

poolSize

public int poolSize

Field Value

int

Methods

GetOne(string)

public IRecyclable GetOne(string name)

Parameters

name string

Returns

IRecyclable

Recycle(GameObject)

public void Recycle(GameObject gameObject)

Parameters

gameObject GameObject

Recycle(IRecyclable)

public void Recycle(IRecyclable recycleObj)

Parameters

recycleObj IRecyclable

SetPoolSize(int)

public void SetPoolSize(int size)

Parameters

size int