コード例 #1
0
    void InitView(NDictionary data = null)
    {
        manorExpProgress.value = 0;
        IDLabel.text           = userPackage.GroupID.ToString();
        float progress = 0f;

        levelLabel.text = string.Format("Lv.{0}", userPackage.GetManorLevel(out progress).ToString());
        nameLabel.text  = userPackage.GetGroupName();

        manorExpProgress.value = 1 - progress;
        ShowEventIcon();
    }
コード例 #2
0
    void ShowSelf()
    {
        nameLabel.text         = userPackage.GetGroupName();
        levelLabel.text        = string.Format("Lv.{0}", userPackage.GetManorLevel());
        contributionLabel.text = string.Format("实力:{0}", userPackage.GetTotalContribution());
        int count   = 0;
        var userMap = userPackage.GetUserInfoMap();

        foreach (var pair in userMap)
        {
            NUserInfo info = pair.Value;
            playerInofs[count].nameLabel.text = info.name;
        }
    }