Пример #1
0
    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);
            }
        }
    }
Пример #2
0
 public void Remove(int taskId)
 {
     SlgPB.Task task = GetTaskWithId(taskId);
     _activeTasks.Remove(task);
 }
Пример #3
0
 public bool IsTaskComplete(int taskId)
 {
     SlgPB.Task task = GetTaskWithId(taskId);
     return(IsTaskComplete(task));
 }