예제 #1
0
    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);
    }
예제 #2
0
 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();
 }