Esempio n. 1
0
        public override void SetData(object data)
        {
            base.SetData(data);
            activityId = EB.Dot.Integer("activity_id", data, 0);
            string desctext = EB.Dot.String("desc", data, "");

            SetTextShow(RichTextParser.ParseRichText(desctext), descpos, descpos);
            SetDrawCardState();
            int timetoend = fintime - EB.Time.Now;

            if (activityendtimer == 0 && timetoend > 0)
            {
                ILRTimerManager.instance.AddTimer(timetoend * 1000, 1, OnactivityEnd);
            }
            var activity = Hotfix_LT.Data.EventTemplateManager.Instance.GetTimeLimitActivity(activityId);

            UrPartnerInfoid = activity.parameter1;
            int.TryParse(UrPartnerInfoid, out int infoid);
            HeroInfoTemplate infotemp = CharacterTemplateManager.Instance.GetHeroInfo(infoid);

            MaxRankValue = EventTemplateManager.Instance.GetURPartnerEventRewardMaxNum(infoid);
            if (infotemp != null)
            {
                urPartnerIcon.spriteName = infotemp.icon;
                urPartnerType.spriteName = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[infotemp.char_type];
                HotfixCreateFX.ShowCharTypeFX(charFx, efClip, urPartnerType.transform, (PartnerGrade)infotemp.role_grade, infotemp.char_type);
            }
            ActivityUtil.RequestRankData((int)ActivityUtil.ActivityRankType.URPartnerRank, SetRankData);
        }
Esempio n. 2
0
 private void SetScoreRewardRPState(int seq = 0)
 {
     ActivityUtil.ResetRankRefreshRecord((int)ActivityUtil.ActivityRankType.URPartnerRank);
     ActivityUtil.RequestRankData((int)ActivityUtil.ActivityRankType.URPartnerRank, SetRankData);
     scoreRewardRp.CustomSetActive(GetScoreRewardRPState());
     scoreredtimer = 0;
     title.UpdateRedPoint();
 }