Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / Navmesh / EntityNavigationTest.cs
@Rackday Rackday on 21 Aug 622 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.AI;
  5. public class EntityNavigationTest : MonoBehaviour
  6. {
  7. public NavMeshAgent agent;
  8. public FiniteStateMachine machine;
  9. public Transform target;
  10. public bool calculate;
  11. // Start is called before the first frame update
  12. void Start()
  13. {
  14. /*bool state = agent.SetDestination(target.position);
  15. Debug
  16. .Log(state);*/
  17. }
  18. // Update is called once per frame
  19. void Update()
  20. {
  21. if (calculate)
  22. {
  23. calculate = false;
  24. }
  25. }
  26. }