Table of Contents

Class CallbackFlowAwaiter

Flow awaiter that uses a callback to check if it needs to wait or not.

public class CallbackFlowAwaiter : AbstractFlowAwaiter
Inheritance
CallbackFlowAwaiter
Inherited Members
Extension Methods

Constructors

CallbackFlowAwaiter(Func<bool>)

public CallbackFlowAwaiter(Func<bool> waitCondition)

Parameters

waitCondition Func<bool>

Methods

ShouldWait(float)

Decides weather the flow should wait for this awaiter or not.

protected override bool ShouldWait(float deltaTime)

Parameters

deltaTime float

Current frame delta time.

Returns

bool

If True the flow will wait. Otherwise the flow will continue