[TaskDescription("Wait a specified amount of time. The task will return running until the task is done waiting. It will return success after the wait time has elapsed.")]
[TaskIcon("{SkinColor}WaitIcon.png")]
publicclassWait:Action
{
[Tooltip("The amount of time to wait")]
publicSharedFloatwaitTime=1;
[Tooltip("Should the wait be randomized?")]
publicSharedBoolrandomWait=false;
[Tooltip("The minimum wait time if random wait is enabled")]
publicSharedFloatrandomWaitMin=1;
[Tooltip("The maximum wait time if random wait is enabled")]
publicSharedFloatrandomWaitMax=1;
// The time to wait
privatefloatwaitDuration;
// The time that the task started to wait.
privatefloatstartTime;
// Remember the time that the task is paused so the time paused doesn't contribute to the wait time.