Ejemplo n.º 1
0
    public static void TaskRefresh(List <DailyTaskResp.DailyTask> taskList)
    {
        TaskNode node = NodeManager.GetNode <TaskNode>();

        if (node)
        {
            node.LoadItems(taskList);
        }
        MainPage mainPage = PageManager.Instance.GetPage <MainPage>();

        if (mainPage)
        {
            mainPage.SetTaskRed(taskList.Find(p => p.actule_times >= p.daliy_times && p.has_cashing_prize == 0) != null);
        }
    }