using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class EntityNavigationTest : MonoBehaviour { public NavMeshAgent agent; public FiniteStateMachine machine; public Transform target; public bool calculate; // Start is called before the first frame update void Start() { /*bool state = agent.SetDestination(target.position); Debug .Log(state);*/ } // Update is called once per frame void Update() { if (calculate) { calculate = false; } } }