public void ResourceLoaded()
    {
        m_rewardCamera = m_transform.Find("RightBox/RewardList/RewardListCamera");
        if (m_rewardTip == null)
        {
            m_rewardTip = m_transform.Find("RightBox/RewardTip").gameObject;
            m_rewardTip.AddComponent <RewardGridTip>().TipNum = 4;
        }
        if (m_bigRewardTip == null)
        {
            m_bigRewardTip = m_transform.Find("RightBox/BigRewardTip").gameObject;
            m_bigRewardTip.AddComponent <RewardGridTip>().TipNum = 1;
        }

        int iter = 0;

#if UNITY_IPHONE
        foreach (var towerXML in TowerXMLData.dataMap.SortByKey())
#else
        foreach (var towerXML in TowerXMLData.dataMap.OrderBy(x => x.Key))
#endif
        {
            TowerRewardUnit unit = (TowerRewardUnit)(m_rewardList.GetComponentsInChildren <MogoListImproved>(true)[0].DataList[iter]);
            unit.RewardID        = towerXML.Key;
            unit.TowerName       = LanguageData.GetContent(20100 + unit.RewardID / 10);
            unit.clickHandler    = onClick;
            unit.towerTipHandler = onTowerTip;
            //if (ClimbTowerUILogicManager.Instance.Data.Items.ContainsValue(towerXML.Key))
            //{
            //    unit.IsAlreadyGet = true;
            //}
            //else
            //{
            //    unit.IsAlreadyGet = false;
            //}
            unit.RewardName = LanguageData.GetContent(20200 + unit.RewardID / 10);
            unit.icon       = TowerXMLData.dataMap.Get(towerXML.Key).icon;
            iter++;
        }
    }
    public void SetView(TowerData data)
    {
        int vipLevel = MogoWorld.thePlayer.VipLevel;

        TimerManager.GetTimer(m_buttonNormal.gameObject).StartTimer(data.CountDown,
                                                                    (sec) => { m_buttonNormal.GetComponentsInChildren <UILabel>(true)[0].text = String.Concat((sec / 3600), ":", (sec % 3600) / 60, ":", ((sec % 3600) % 60)); m_sweepReady = true; },
                                                                    () => { m_buttonNormal.GetComponentsInChildren <UILabel>(true)[0].text = LanguageData.dataMap.Get(810).content; m_sweepReady = false; });
        m_highHistory.text = LanguageData.GetContent(801, data.Highest);
        //m_currentLevel.text = LanguageData.GetContent(802, data.CurrentLevel);

        if (vipLevel == 0)
        {
            //非VIP
            m_buttonVIP.SetButtonText(LanguageData.GetContent(808));
            m_leftVIPSweepCount.text = LanguageData.GetContent(20019, vipLevel + 1, PrivilegeData.dataMap[vipLevel + 1].dailyTowerSweepLimit);
        }
        else
        {
            int leftCount = PrivilegeData.dataMap[vipLevel].dailyTowerSweepLimit - data.VIPSweepUsed;
            m_buttonVIP.SetButtonText(LanguageData.GetContent(807, leftCount));

            if (vipLevel >= GlobalData.dataMap[0].tower_all_sweep_vip_level)
            {
                m_leftVIPSweepCount.text = LanguageData.GetContent(20021, vipLevel);
                //隐藏普通扫荡,vip扫荡改为全部扫荡
                m_buttonNormal.gameObject.SetActive(false);
                m_buttonVIP.SetButtonText(LanguageData.GetContent(809));
            }
            else if (vipLevel + 1 == GlobalData.dataMap[0].tower_all_sweep_vip_level)
            {
                m_leftVIPSweepCount.text = LanguageData.GetContent(20020, vipLevel + 1);
            }
            else
            {
                m_leftVIPSweepCount.text = LanguageData.GetContent(20019, vipLevel + 1, PrivilegeData.dataMap[vipLevel + 1].dailyTowerSweepLimit);
            }
        }
        m_leftChallengeCount.text = LanguageData.GetContent(803, data.FailCount);
        m_lblGuide.text           = LanguageData.dataMap.Get(vipLevel + 20006).content;

        if (data.CurrentLevel > data.Highest)
        {
            m_buttonVIP.Clickable    = false;
            m_buttonNormal.Clickable = false;
        }
        else
        {
            m_buttonVIP.Clickable    = true;
            m_buttonNormal.Clickable = true;
        }
        int iter    = 0;
        var rwdList = m_rewardList.GetComponentsInChildren <MogoListImproved>(true);

        if (rwdList[0].DataList.Count > 0)
        {
            foreach (var towerXML in TowerXMLData.dataMap)
            {
                TowerRewardUnit unit = (TowerRewardUnit)(rwdList[0].DataList[iter]);
                if (data.Items.ContainsValue(towerXML.Key))
                {
                    unit.IsAlreadyGet = true;
                }
                else
                {
                    unit.IsAlreadyGet = false;
                }
                unit.force = LanguageData.GetContent(20099, MissionData.dataMap.FirstOrDefault(
                                                         x =>
                                                         MapData.dataMap.Get(x.Value.mission).type == MapType.ClimbTower &&
                                                         x.Value.difficulty == unit.RewardID - 9)
                                                     .Value.minimumFight.ToString());
                unit.PicID = (unit.RewardID / 10 - 1) % 3;

                if (((data.CurrentLevel % 10 == 0 ? data.CurrentLevel : (data.CurrentLevel / 10 + 1) * 10) == unit.RewardID))
                {
                    unit.TowerDesc    = LanguageData.GetContent(802, data.CurrentLevel);
                    unit.forceCurrent = LanguageData.GetContent(20099,
                                                                (MissionData.dataMap.FirstOrDefault(x =>
                                                                                                    MapData.dataMap.Get(x.Value.mission).type == MapType.ClimbTower &&
                                                                                                    x.Value.difficulty == data.CurrentLevel)
                                                                 .Value.minimumFight).ToString());
                    unit.Grey      = false;
                    unit.HighLight = true;
                    unit.Unlocked  = true;
                }
                else if (((data.CurrentLevel % 10 == 0 ? data.CurrentLevel : (data.CurrentLevel / 10 + 1) * 10) < unit.RewardID))
                {
                    unit.TowerDesc = string.Empty;
                    unit.Grey      = true;// true;
                    unit.Unlocked  = false;
                    unit.HighLight = false;
                }
                else
                {
                    unit.TowerDesc = string.Empty;
                    unit.Grey      = false;
                    unit.HighLight = false;
                    unit.Unlocked  = true;
                }

                iter++;
            }
        }
        MogoGlobleUIManager.Instance.ShowWaitingTip(false);
    }