Ejemplo n.º 1
0
 public bool CompletionCheck()
 {
     // iterate through the subtasks to see if any are not done.
     foreach (SubTask _st in SubTaskList)
     {
         if (!_st.IsComplete)
         {
             Debug.Log("SubTask Completeed, Task " + title + " Not Complete");
             IsComplete = false;
             return(false); // if one is not done, bail out of function
         }
     }
     // all subtasks are complete
     Debug.Log("SubTasks Complete, Task " + title + " Complete");
     IsComplete = true;
     taskMaster.CheckTaskCompletion();
     return(true);
 }