Esempio n. 1
0
        protected override void Init(AIBehaviors fsm)
        {
            if (navMeshAgent == null)
            {
                navMeshAgent = fsm.GetComponent <NavMeshAgent>();
            }

            hasNavMeshAgent = navMeshAgent != null;
        }
Esempio n. 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;
        }