public bool IsTaskComplete(SlgPB.Task task) { DataTask dataTask = DataManager.instance.dataTaskGroup.GetTask(task.taskId); if (!dataTask.command.Equals("ArenaRankings")) { if (task.progress >= dataTask.totalProgress) { return(true); } else { return(false); } } else { if (task.progress <= dataTask.totalProgress) { return(true); } else { return(false); } } }
public void Remove(int taskId) { SlgPB.Task task = GetTaskWithId(taskId); _activeTasks.Remove(task); }
public bool IsTaskComplete(int taskId) { SlgPB.Task task = GetTaskWithId(taskId); return(IsTaskComplete(task)); }