Exemplo n.º 1
0
 /// <summary>
 /// get instance
 /// </summary>
 /// <returns></returns>
 public static DialogDataMgr GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new DialogDataMgr();
     }
     return(_Instance);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 显示下条信息
        /// </summary>
        /// <param name="type"></param>
        /// <param name="dialogNum"></param>
        /// <returns></returns>
        public object[] DiaplayNextDiaLog(DialogType type, int dialogNum)
        {
            bool           isDialogEnd = false; //对话开始
            DialogTalkType dType       = DialogTalkType.None;
            string         strName;
            string         dialogContent;
            bool           isLastDialog = false;

            //切换说话方
            ChangeDialogType(type);
            //得到会话信息
            bool flag = DialogDataMgr.GetInstance().GetNextDialogInfoRecoder(dialogNum, out dType, out strName, out dialogContent, out isLastDialog);

            if (flag)
            {
                //返回对话信息
                return(DisplayDialogInfo(type, dType, strName, dialogContent, isLastDialog));
            }
            else
            {
                isDialogEnd = true;
                return(null);
            }
        }