public static void InsertTaskToBeginning(UnitTask task) { if (task == null) { return; } if (DoesTaskExist(task)) { return; } task.UpdateTask(); Tasks.Insert(0, task); }
public static void AddTaskToGlobalTaskList(UnitTask task) { if (task == null) { return; } if (DoesTaskExist(task)) { return; } task.UpdateTask(); Tasks.Add(task); }
/// <summary> /// Adds a task to the end of the Workers task list /// </summary> /// <param name="theTask">Task to be Added</param> public void AddTask(UnitTask theTask) { theTask.UpdateTask(); _localTaskList.Add(theTask); }