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