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