コード例 #1
0
        protected override void Init(AIBehaviors fsm)
        {
            if (navMeshAgent == null)
            {
                navMeshAgent = fsm.GetComponent <NavMeshAgent>();
            }

            hasNavMeshAgent = navMeshAgent != null;
        }
コード例 #2
0
        protected override void Init(AIBehaviors fsm)
        {
            fsmTransform = fsm.transform;

            if (navMeshAgent == null)
            {
                navMeshAgent = fsm.GetComponent <NavMeshAgent>();
            }

            jumpTime    = Time.time + jumpDelay;
            hasLinkData = false;
            isJumping   = false;
        }