Class AbstractFlowAwaiter
- Namespace
- FriedSynapse.FlowEnt
Provides Flow awaiters basic functionality
public abstract class AbstractFlowAwaiter : AbstractUpdatable
- Inheritance
-
AbstractFlowAwaiter
- Derived
- Inherited Members
- Extension Methods
Methods
OnCompleted(Action)
Adds an event called when the awaiter has finished waiting.
public AbstractFlowAwaiter OnCompleted(Action callback)
Parameters
callback
ActionThe event.
Returns
OnStarted(Action)
Adds an event called when the awaiter started waiting.
public AbstractFlowAwaiter OnStarted(Action callback)
Parameters
callback
ActionThe event.
Returns
OnUpdated(Action<float>)
Adds an event called when the awaiter is waiting.
public AbstractFlowAwaiter OnUpdated(Action<float> callback)
Parameters
Returns
ShouldWait(float)
Decides weather the flow should wait for this awaiter or not.
protected abstract bool ShouldWait(float deltaTime)
Parameters
deltaTime
floatCurrent frame delta time.
Returns
- bool
If True the flow will wait. Otherwise the flow will continue