/// <summary> /// Will be executed when the task is stopped or has finished. /// </summary> public override void End() { if (Started) { Subtask.SafeEnd(); } }
/// <summary> /// Will be executed each frame while the task is running. /// </summary> public override void DoAction() { if (!Subtask.Finished) { Subtask.DoAction(); } else { Subtask.SafeEnd(); if (Subtask.CheckConditions()) { Subtask.SafeStart(); } else { Finish(); } } }
/// <summary> /// Will be executed when the task is stopped or has finished. /// </summary> public override void End() { Subtask.SafeEnd(); TaskContext <DataType> .GlobalSemaphores[identifier]--; }
/// <summary> /// Will be executed when the task is stopped or has finished. /// </summary> public override void End() { Subtask.SafeEnd(); Context.LocalSemaphores[identifier]--; }