public override void OnBeAddedToData() { base.OnBeAddedToData(); int index = 0; TDBaseTalkFragment Lasted = null; foreach (var item in Fragments) { item.TalkIndex = index; index++; item.TalkId = TDID; Lasted = item; item.TalkDescId = item.TalkId + "_" + item.TalkIndex; } if (Lasted != null) { Lasted.IsLasted = true; } //获取Op for (int i = 0; i < Const.Val_MaxTalkOptionCount; i++) { string opKey = TDID + Const.Suffix_Op + "_" + i; if (BaseLanguageMgr.IsContain(opKey)) { Option.Add(opKey); } } }
protected virtual void OnTalk(TData talkData, TDBaseTalkFragment fragment, int index) { }
protected virtual void OnStartTalk(TData talkData, TDBaseTalkFragment fragment) { }