Exemplo n.º 1
0
    void OpenInvadeResult(NDictionary args)
    {
        int idx  = args.Value <int>("index");
        var list = mailPackage.GetMailList();

        if (idx >= list.Count)
        {
            return;
        }
        FightingInfo res = list[idx].fightingInfo;

        StartCoroutine(PlayInvadeAnimation(res));
    }
Exemplo n.º 2
0
    public override void DrawCell(int index, int count = 0)
    {
        mIndex = index;
        var          list = mailPackage.GetMailList();
        NMessageInfo info = list[index];

        if (info.type == 2)
        {
            ShowInvadeWarning(info);
        }
        else if (info.type == 3)
        {
            ShowInvadeResult(info);
        }
        if (info.isRead == false)
        {
            pointGo.SetActive(true);
        }
        else
        {
            pointGo.SetActive(false);
        }
    }
Exemplo n.º 3
0
 void RefreshView()
 {
     tableView.DataCount = mailPackage.GetMailList().Count;
     tableView.TableChange();
 }