protected override void Init(AIBehaviors fsm) { if (navMeshAgent == null) { navMeshAgent = fsm.GetComponent <NavMeshAgent>(); } hasNavMeshAgent = navMeshAgent != null; }
protected override void Init(AIBehaviors fsm) { fsmTransform = fsm.transform; if (navMeshAgent == null) { navMeshAgent = fsm.GetComponent <NavMeshAgent>(); } jumpTime = Time.time + jumpDelay; hasLinkData = false; isJumping = false; }