mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
20 lines
314 B
C#
20 lines
314 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class TestNagivation : MonoBehaviour
|
|
{
|
|
public Transform goal;
|
|
|
|
private void Start()
|
|
{
|
|
UnityEngine.AI.NavMeshAgent component = GetComponent<UnityEngine.AI.NavMeshAgent>();
|
|
component.destination = goal.position;
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
}
|
|
}
|
|
}
|