internal void InitDefault(string excelPath) { CreateScenariosIfMissing(); ChapterData chapter = new ChapterData(); chapter.InitDefault(excelPath); chapterDataList.Insert(0, chapter); EditorUtility.SetDirty(this); }
void UpdateOldVersion() { if (excelList.Count > 0) { ChapterData chapter = new ChapterData(); chapter.InitDefault(this.excelList); this.chapterDataList.Insert(0, chapter); this.excelList.Clear(); EditorUtility.SetDirty(this); Debug.Log("Update Old Project"); } }