public override bool updateTask() { if (skip) { return(true); } if (currentTask.updateTask()) { //cut if (pausedTasks) { //currentTask.endTask(); //Debug.Log("pause"); currentTask = pausedTasks; //endTask(); pausedTasks.startTask(); pausedTasks = null; //return true; } else { return(endChild()); } } return(false); }
public void startNextTask() { // print(tasks[currentTaskIndex].name); currentTask = tasks[currentTaskIndex].GetComponent <ExperimentTask>(); currentTask.parentTask = this; currentTask.startTask(); }
public void startNextTask() { Debug.Log("Starting " + tasks[currentTaskIndex].name); currentTask = tasks[currentTaskIndex].GetComponent <ExperimentTask>(); currentTask.parentTask = this; currentTask.startTask(); }
public BlockController(ExperimentTask task, int blockId, TargetBehaviour[] targets, IBlockListener listener, CursorBehaviour theCursor) { this.task = task; this.blockId = blockId; this.targets = targets; this.listener = listener; this.cursor = theCursor; }
public static string GetTaskString(ExperimentTask task) { switch (task) { case ExperimentTask.ReciprocalDragging: return("ReciprocalDragging"); case ExperimentTask.ReciprocalTapping: return("ReciprocalTapping"); } return(task.ToString()); }