public static void RemoveTask(int _taskID) { if (TaskManager.instance.Tasks.ContainsKey(_taskID)) { ClockManager.RemoveClock(TaskManager.instance.Tasks[_taskID].ClockID); TaskManager.instance.Tasks.Remove(_taskID); } }
public static void RemoveLoopedTask(int _taskID) { if (LoopedTaskManager.instance.LoopedTasks.ContainsKey(_taskID)) { ClockManager.RemoveClock(LoopedTaskManager.instance.LoopedTasks[_taskID].ClockID); LoopedTaskManager.instance.LoopedTasks.Remove(_taskID); } }