public void StartNovel(NovelCommand.CommonData commonData = null, NovelCommand.CommonVariable commonVariable = null) { this.executer = new NovelExecuter(this.data); if (commonVariable == null) { commonVariable = new NovelCommand.CommonVariable() { currentIndex = 0 }; } if (commonData == null) { // Create Initial Common Data commonData = new NovelCommand.CommonData() { manager = this, view = this.view, data = this.data }; } StartCoroutine(RunCoroutine(commonData, commonVariable)); }
private IEnumerator RunCoroutine(NovelCommand.CommonData commonData, NovelCommand.CommonVariable commonVariable) { yield return(executer.SetupCoroutine(commonData)); yield return(executer.RunCoroutine(commonVariable)); yield break; }
public IEnumerator SetupCoroutine(NovelCommand.CommonData commonData) { if (commonData == null) { yield break; } this.commonData = commonData; yield break; }