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; } }
public override void ShowPopup(PopupUIData data) { this.SetBackGroundImg(); TopBar.Initialize(true); SelectBookType = BOOK_TYPE.NONE; OnClickBook(BOOK_TYPE.ENDING); }
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; }
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); }