/// <summary>
        /// 采矿
        /// </summary>
        /// <param name="ev"></param>
        public void OnCollectMine(CollectMineCommand ev)
        {
            StopPathFinding();
            Action callback = delegate()
            {
                GotoEmptyFsm();
                ev.OnFinish?.Invoke();
            };

            m_AnimController.Play("miss", callback, false);
        }
Esempio n. 2
0
        protected override void OnEnter(IFsm <ActorBase> fsm)
        {
            base.OnEnter(fsm);
            CollectMineCommand ev = m_Command as CollectMineCommand;

            if (ev.LastTime > 0)
            {
                GameEntry.Timer.Register(ev.LastTime, Break);
            }
            m_Owner.OnCollectMine(ev);
        }