| MonoBehaviourPoolT Constructor |
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public MonoBehaviourPool(
T prefab,
GameObject root,
int initialCount,
Action<T> wakeUp,
Action<T> setToSleep
)
Parameters
- prefab
- Type: T
The prefab used to instantiate objects from. - root
- Type: GameObject
- initialCount
- Type: SystemInt32
The initial count of objects to create. - wakeUp
- Type: SystemActionT
A function called on an object when it is woken up. - setToSleep
- Type: SystemActionT
A function called on objects when they are put to sleep.
See Also