예제 #1
0
        public void InitData(SigninAward sd, int index)
        {
            Item.LTItemData = new LTShowItemData(sd.Id, sd.Count, sd.Type, false);
            StageDta        = sd;

            BgSprite.spriteName = (index == 3 || index == 10 || index == 17 || index == 24) ? "Welfare_Qiandao_Di2" : "Welfare_Qiandao_Di1";
            DayLabel.text       = string.Format(EB.Localizer.GetString("ID_DAY"), index);
        }
예제 #2
0
        private SigninAward ParseSigninTemplate(GM.DataCache.SignInReward dict)
        {
            SigninAward award = new SigninAward();

            award.Type  = dict.ItemType;
            award.Id    = dict.ItemId;
            award.Count = dict.ItemNum;

            return(award);
        }