public void SetActivityInfo(ActivityInfo activityInfo) { _activityInfo = activityInfo; dailyDungeonNameText.text = Localization.Get(_activityInfo.ActivityData.name); dailyDungeonCardImage.SetSprite(ResMgr.instance.Load <Sprite>(ResPath.GetActivityIconPath(activityInfo.ActivityData.pic))); lockMaskGameObject.SetActive(!_activityInfo.isOpen); string openDaysString = string.Empty; if (_activityInfo.ActivityData.openDayList.Count < 7) { openDaysString = UIUtil.GetWeekdayListString(_activityInfo.ActivityData.openDayList); openDaysString = string.Format(Localization.Get("ui.daily_dungeon_view.open_date"), openDaysString); } else { openDaysString = Localization.Get("ui.daily_dungeon_view.open_every_day"); } openDateText.text = openDaysString; if (!_activityInfo.isOpen) { SetToGray(); } }
public void SetActivityInfo(ActivityInfo activityInfo) { _activityInfo = activityInfo; dailyDungeonNameText.text = Localization.Get(_activityInfo.ActivityData.name); dailyDungeonIconImage.SetSprite(ResMgr.instance.Load <Sprite>(ResPath.GetActivityIconPath(_activityInfo.ActivityData.pic))); ResetLevel(_activityInfo.LastChallengedLevel); ResetTimesAndStartButton(); string openDaysString = UIUtil.GetWeekdayListString(_activityInfo.ActivityData.openDayList); closedTipesText.text = string.Format(Localization.Get("ui.daily_dungeon_view.open_date"), openDaysString); if (_activityInfo.isOpen) { bottomButtonsRootGameObject.SetActive(true); closedTipesText.gameObject.SetActive(false); } else { bottomButtonsRootGameObject.SetActive(false); closedTipesText.gameObject.SetActive(true); } }