Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / Navmesh / EntityNavigationTest.cs
@Rackday Rackday on 21 Aug 622 bytes Project Added
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;
        }
    }
}