示例#1
0
 public void AddChild(ATask task)
 {
     if (!Children.Contains(task))
     {
         Children.Add(task);
     }
     else
     {
         Debug.LogError("Trying to the same task twice in a Parallel task.");
     }
 }
示例#2
0
 public void AddRoot(ATask task)
 {
     if (task != null)
     {
         rootNode = task;
     }
     else
     {
         throw new NoNullAllowedException();
     }
 }
示例#3
0
 public void RemoveChildren(ATask task)
 {
     if (!Children.Contains(task))
     {
         Children.Remove(task);
     }
     else
     {
         Debug.LogError(
             "The Parallel task does not contain the specified child task, thus it could not be removed");
     }
 }
示例#4
0
 public void RemoveChildren(ATask action)
 {
     Children.Remove(action);
 }
示例#5
0
 public void AddChild(ATask action)
 {
     Children.Add(action);
 }
示例#6
0
 public void AddChild(ATask task)
 {
     Children.Add(task);
 }