/// <summary> /// 获取文本 /// </summary> /// <returns></returns> public string GetDialogue() {//自动赋值下一句 var dialogue = StaticData.configExcel.GetChapterDialogueTextByID(beginID); if (dialogue.DialogIdList.Count > 0)//有分支的存在数组里 { dialogIdList.Clear(); dialogIdList.AddRange(dialogue.DialogIdList); } else//没有的 也往数组里放一份 { beginID = dialogue.NextDialogId; dialogIdList.Clear(); dialogIdList.Add(dialogue.NextDialogId);//此时 List 应该只有1个元素 } return(ChapterHelper.GetTableDialogue(dialogue.ID)); }