Beispiel #1
0
 /// <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]--;
 }
Beispiel #4
0
 /// <summary>
 /// Will be executed when the task is stopped or has finished.
 /// </summary>
 public override void End()
 {
     Subtask.SafeEnd();
     Context.LocalSemaphores[identifier]--;
 }