Class Task
Single unit to hold logic for TaskSystem. โ Use global single instance from TaskSystem.PeekFromPool โ
Properties
LocalFrame
Frame that start from 0 when the task begins
Declaration
public int LocalFrame { get; }
UserData
Custom data for the internal logic
Declaration
public object UserData { get; }
Methods
FrameUpdate()
This function is used to handle the internal logic.
Declaration
public abstract TaskResult FrameUpdate()
Returns
Type | Description |
---|---|
TaskResult | "Continue" if the task should keep on after this frame. "End" if the task should end. |
OnEnd()
This function is called when this task end
Declaration
public virtual void OnEnd()
OnStart()
This function is called when this task start
Declaration
public virtual void OnStart()