integration

bad other team code on another branch
This commit is contained in:
Crizomb 2025-01-28 23:58:50 +01:00
parent 7925fd966a
commit 521a62973a
278 changed files with 11344 additions and 0 deletions

23
Assets/Scripts/NavMeshJunk.cs Executable file
View file

@ -0,0 +1,23 @@
using UnityEngine;
using UnityEngine.AI;
public class NavMeshJunk : MonoBehaviour
{
private NavMeshAgent agent;
[SerializeField] Vector3 destination;
[SerializeField] GameObject Arriv;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
agent = GetComponent<NavMeshAgent>();
destination = agent.destination;
}
// Update is called once per frame
void Update()
{
destination=Arriv.transform.position;
agent.destination = destination;
}
}