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."); } }
public void AddRoot(ATask task) { if (task != null) { rootNode = task; } else { throw new NoNullAllowedException(); } }
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"); } }
public void RemoveChildren(ATask action) { Children.Remove(action); }
public void AddChild(ATask action) { Children.Add(action); }
public void AddChild(ATask task) { Children.Add(task); }