So far, all of our tasks have used the same
return task.cont. This isn't our only option, though. In reality, we have three options to choose from:
task.contis our first option. Using this return value tells the task to execute again next frame. This option is intended for tasks that continue without interruption.
task.againis our second option. This option is meant for use with
doMethodLater. If we use this return value, the task will execute again after the delay that's provided to
doMethodLater. This means that if we have a one second delay in
doMethodLaterand we use
return task.again, the task will execute once every second.
task.doneis the last return value. This tells the task to remove ...