Exemple #1
0
 private void AddChapter(int _iScriptId, int _iChapterId)
 {
     if (DataManager.Instance.kvs_data.HasKey(CsvChapter.GetChapterKey(_iChapterId)) == false)
     {
         DataManager.Instance.kvs_data.WriteInt(CsvChapter.GetChapterKey(_iChapterId), _iScriptId);
         DataManager.Instance.kvs_data.Save(DataKvs.FILE_NAME);
     }
 }
Exemple #2
0
 public void Initialize(int _iChapterId, int _iScriptId, string _strTitle, string _strName)
 {
     m_bAble     = DataManager.Instance.kvs_data.HasKey(CsvChapter.GetChapterKey(_iChapterId));
     m_iScriptId = _iScriptId;
     if (m_bAble == false)
     {
         _strTitle = "???";
         _strName  = "???";
     }
     m_lbTitle.text = _strTitle;
     m_lbName.text  = _strName;
     return;
 }