private void RefreshAcntInfo()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CUnionBattleRankSystem.UNION_RANK_PATH);

            if (form == null)
            {
                return;
            }
            CSDT_RANKING_LIST_ITEM_INFO actRankInfo = this.GetActRankInfo(this.m_CurSelRankType);
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            GameObject        widget    = form.GetWidget(1);
            RankingItemHelper component = widget.GetComponent <RankingItemHelper>();
            uint num = 0u;

            if (actRankInfo != null && masterRoleInfo != null)
            {
                widget.CustomSetActive(true);
                string name  = masterRoleInfo.Name;
                uint   level = masterRoleInfo.Level;
                num = actRankInfo.dwRankNo;
                uint num2;
                if (num == 0u)
                {
                    num2 = CUnionBattleEntrySystem.GetRewardMatchStateByMapId(this.m_CurSelMapId).dwPerfectCnt;
                }
                else
                {
                    num2 = actRankInfo.dwRankScore;
                }
                widget.transform.FindChild("Value").gameObject.CustomSetActive(true);
                widget.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                CUnionBattleRankSystem.SetGameObjChildText(widget, "Value", num2.ToString(CultureInfo.get_InvariantCulture()));
                CUnionBattleRankSystem.SetGameObjChildText(widget, "NameGroup/PlayerName", masterRoleInfo.Name);
                CUnionBattleRankSystem.SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", level.ToString(CultureInfo.get_InvariantCulture())));
            }
            CUnionBattleRankSystem.RankNobSet(num, component);
            MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

            GameObject gameObject = widget.transform.FindChild("HeadItemCell").gameObject;

            CUICommonSystem.SetHostHeadItemCell(gameObject);
            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 1, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 2, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 5, true, false);
        }
        private void RefreshAcntInfo()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(UNION_RANK_PATH);

            if (form != null)
            {
                CSDT_RANKING_LIST_ITEM_INFO actRankInfo = this.GetActRankInfo(this.m_CurSelRankType);
                CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                GameObject        widget    = form.GetWidget(1);
                RankingItemHelper component = widget.GetComponent <RankingItemHelper>();
                uint rankNumber             = 0;
                if ((actRankInfo != null) && (masterRoleInfo != null))
                {
                    widget.CustomSetActive(true);
                    string name  = masterRoleInfo.Name;
                    uint   level = masterRoleInfo.Level;
                    rankNumber = actRankInfo.dwRankNo;
                    uint dwPerfectCnt = 0;
                    if (rankNumber == 0)
                    {
                        dwPerfectCnt = CUnionBattleEntrySystem.GetRewardMatchStateByMapId(this.m_CurSelMapId).dwPerfectCnt;
                    }
                    else
                    {
                        dwPerfectCnt = actRankInfo.dwRankScore;
                    }
                    widget.transform.FindChild("Value").gameObject.CustomSetActive(true);
                    widget.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                    SetGameObjChildText(widget, "Value", dwPerfectCnt.ToString(CultureInfo.InvariantCulture));
                    SetGameObjChildText(widget, "NameGroup/PlayerName", masterRoleInfo.Name);
                    SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", level.ToString(CultureInfo.InvariantCulture)));
                }
                RankNobSet(rankNumber, component);
                MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

                CUICommonSystem.SetHostHeadItemCell(widget.transform.FindChild("HeadItemCell").gameObject);
                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Wechat, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.QQ, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Guest, true, false);
            }
        }