Esempio n. 1
0
        public override void Fill(MainCampaignRewardTemplate tempData)
        {
            if (tempData == null)
            {
                Clean();
                return;
            }
            if (data == null || data.stage != tempData.stage)
            {
                data            = tempData;
                StageLabel.text = string.Format(EB.Localizer.GetString("ID_uifont_in_LTGetHeroView_Label_1"), data.stage % 100);
                ShowReward(m_ShowItems, data.ItemList);
                ShowReward(m_ExShowItems, data.ExItemList);
            }

            int curStage = LTWelfareModel.Instance.GetMaxCampaignLevel();

            if (curStage >= data.stage)
            {
                StageSprite.spriteName = "Welfare_Zhuxianjijing_Di_2";
                StageObj.CustomSetActive(true);
            }
            else
            {
                StageSprite.spriteName = "Welfare_Zhuxianjijing_Di_3";
                StageObj.CustomSetActive(false);
            }
            LockObj.CustomSetActive(!LTWelfareModel.Instance.HasMain);
            ShowBtn(curStage);
            mDMono.gameObject.CustomSetActive(true);
        }
Esempio n. 2
0
 public override void Clean()
 {
     data = null;
     mDMono.gameObject.CustomSetActive(false);
 }