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