public ButtonBase buyButton; //购买按钮 public void updateActive(ActivityChapter _chapter) { this.chapter = _chapter; if (!chapter.isOpen()) { buyButton.gameObject.SetActive(false); } buyButton.onClickEvent = buy; updateTimes(); ResourcesManager.Instance.LoadAssetBundleTexture("texture/activity/activity_" + chapter.getThumbIconID(), bgIcon); }
public void refreshData() { chapter = FuBenManagerment.Instance.getActivityChapterBySid(FuBenManagerment.Instance.selectedChapterSid); updateTimes(); ResourcesManager.Instance.LoadAssetBundleTexture("texture/activity/activity_" + chapter.getThumbIconID(), bannerBg); setTitle(chapter.getChapterName()); missionList = FuBenManagerment.Instance.getAllShowMissions(FuBenManagerment.Instance.selectedChapterSid); //info.updateActive (chapter); setInfo(); }