示例#1
0
 public void StartCoroutine(PausableTask task)
 {
     while (task.MoveNext() == true)
     {
         ;
     }
 }
示例#2
0
 public void StartCoroutineThreadSafe(PausableTask task)
 {
     StartCoroutine(task);
 }
示例#3
0
    public TaskRoutine CreateTask(Func<IEnumerator> taskGenerator)
    {
        PausableTask ptask = new PausableTask(_runner);

        return new TaskRoutine(ptask, taskGenerator);
    }
示例#4
0
        internal TaskRoutine(PausableTask task)
		{
            _task = task;
		}
示例#5
0
 internal TaskRoutine(PausableTask task, Func<IEnumerator> taskGenerator)
 {
     _task = task;
     _taskGenerator = taskGenerator;
 }