Example #1
0
        /// <summary>
        /// 开始一段剧情
        /// </summary>
        public virtual void Start(string id)
        {
            if (id.IsInvStr())
            {
                return;
            }
            var temp = Table.Find(id);

            if (temp == null)
            {
                CLog.Error("无法找到剧情:{0}", id);
                return;
            }
            else
            {
                CurData = temp.Copy() as TData;
            }
            CurPlotIndex = 0;
            CurData.OnBeAdded(SelfBaseGlobal);
            BattleCoroutine.Run(CurData.OnPlotStart());
        }