Exemple #1
0
    public void OnClickBook(BOOK_TYPE type)
    {
        // SoundManager.Instance.PlayFXSound(CommonData.SOUND_TYPE.BUTTON);

        if (SelectBookType == type)
        {
            return;
        }

        SelectBookType = type;

        EndingBookObj.SetActive(false);
        SkinBookObj.SetActive(false);

        EndingBookTab.SetSelect(SelectBookType == BOOK_TYPE.ENDING);
        SkinBookTab.SetSelect(SelectBookType == BOOK_TYPE.SKIN);

        switch (SelectBookType)
        {
        case BOOK_TYPE.ENDING:
            ShowEndingBook();
            break;

        case BOOK_TYPE.SKIN:
            ShowSkinBook();
            break;

        default:
            break;
        }
    }
Exemple #2
0
 public override void ShowPopup(PopupUIData data)
 {
     this.SetBackGroundImg();
     TopBar.Initialize(true);
     SelectBookType = BOOK_TYPE.NONE;
     OnClickBook(BOOK_TYPE.ENDING);
 }
Exemple #3
0
 public ReadDataItem(string bookName, string author, BOOK_TYPE type, READ_STATUS status, int score = -1, DateTime beginTime = new DateTime(), DateTime endTime = new DateTime())
 {
     this.bookName  = bookName;
     this.author    = author;
     this.type      = type;
     this.status    = status;
     this.score     = score;
     this.beginTime = beginTime;
     this.endTime   = endTime;
 }
Exemple #4
0
        public void StartRead(string bookName, string author, BOOK_TYPE type)
        {
            ReadDataItem item = new ReadDataItem(bookName, author, type, READ_STATUS.Start, beginTime: DateTime.Now);

            listReadItems.Add(item);
        }