public void AddTask(HEU_ThreadedTask task) { if (!_tasks.Contains(task) && !_pendingAdd.Contains(task)) { _pendingAdd.Add(task); } }
public void RemoveTask(HEU_ThreadedTask task) { if (_tasks.Contains(task) && !_pendingRemove.Contains(task)) { //Debug.Log("Remove task requested: " + task.TaskName); _pendingRemove.Add(task); } }