示例#1
0
        public void Step()
        {
            if (m_NavMeshAgent.enabled == false)
            {
                return;
            }
            if (!m_Owner.CheckActorState(ActorStateType.IsAutoToMove))
            {
                return;
            }
            if (!CheckReached())
            {
                return;
            }

            OnArriveEvent?.Invoke();

            if (m_OnFinished == null)
            {
                return;
            }

            m_OnFinished();
            m_OnFinished = null;
        }