Example #1
0
    /// <summary>
    /// 点击解锁按钮
    /// </summary>
    void OnClickUnlockBtn()
    {
        switch (type)
        {
        case OADItemType.AD:
            UnlockViewAD(this._currShowData.ExtraStoryId);
            break;

        case OADItemType.Money:
            UIChapterComponent.Instance.OpenBuyOAD(this._currShowData, this._currDataIndex, this, ShwoData);
            break;
        }
        ChapterHelper.ReduceRedDot(this._currShowData.ExtraStoryId, false);
        UIChapterComponent.Instance.ShowOADBtnRedDot();
        NoUnlockRedDot.gameObject.SetActive(false);
    }
Example #2
0
 //章节解锁后点击
 void OnClickAsync()
 {
     ChapterHelper.ReduceRedDot(chapterID, true);
     if (this.chapterID == 998)
     {
         StaticData.CreateToastTips(StaticData.GetMultilingual(120242));
         return;
     }
     //已解锁 判断阅读到了哪章
     //如果是第一个可读章节则进入章节  如果不是 提示先阅读之前章节
     if (IsBeforeWatchOver)
     {//进入章节内部逻辑
         Debug.Log("进入已解锁章节");
         ChapterHelper.EnterIntoChapter(this.chapterID);
     }
     else
     {                                                                   //提示
         StaticData.CreateToastTips(StaticData.GetMultilingual(120205)); //请把上一章节看完
         SetLock();
     }
 }