Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 protected virtual void OnTalk(TData talkData, TalkFragment fragment, int index)
 {
 }
Exemple #3
0
 protected virtual void OnStartTalk(TData talkData, TalkFragment fragment)
 {
 }