Ejemplo n.º 1
0
        protected override void OnEnter(IFsm <ActorBase> fsm)
        {
            base.OnEnter(fsm);
            InteractiveCommand ev = m_Command as InteractiveCommand;

            if (ev.LastTime > 0)
            {
                GameEntry.Timer.Register(ev.LastTime, Break);
            }
            m_Owner.OnInteractive(ev);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 交互
        /// </summary>
        /// <param name="ev"></param>
        public void OnInteractive(InteractiveCommand ev)
        {
            StopPathFinding();
            Action callback = delegate()
            {
                GotoEmptyFsm();
                ev.OnFinish?.Invoke();
            };

            m_AnimController.Play(ev.AnimName, callback, false);
        }