DinoFracture 2.11.1
A Dynamic Fracture Library
Loading...
Searching...
No Matches

DinoFracture.CoroutinePump Class Reference

Allows for pumping of a list of coroutines for a certain maximum of time per frame / update. More...

Public Member Functions

CoroutineHandle AddCoroutine (IEnumerator coroutine)
 Adds a coroutine to the list. The coroutine will execute on the next call to Update if it can be run.
 
bool CancelCoroutine (in CoroutineHandle handle)
 Cancels / removes a running coroutine.
 
void Update (TimeSpan maxTimeToRun)
 Pumps all coroutines up to the specified amount of time.
 

Detailed Description

Allows for pumping of a list of coroutines for a certain maximum of time per frame / update.