2023-01-22 16:38:23 +01:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.AI;
|
|
|
|
|
|
|
|
|
|
namespace ABI.CCK.Components
|
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
|
[AddComponentMenu("ChilloutVR/CVR Nav Controller")]
|
|
|
|
|
[HelpURL("https://developers.abinteractive.net/cck/components/nav-controller/")]
|
|
|
|
|
public class CVRNavController : MonoBehaviour, ICCK_Component
|
2023-01-22 16:38:23 +01:00
|
|
|
|
{
|
|
|
|
|
public NavMeshAgent navMeshAgent;
|
|
|
|
|
public Transform[] navTargetList;
|
|
|
|
|
public int navTargetIndex = 0;
|
|
|
|
|
public Transform[] patrolPoints;
|
|
|
|
|
public int patrolPointIndex = 0;
|
|
|
|
|
public float patrolPointCheckDistance = 0.5f;
|
|
|
|
|
public bool patrolEnabled = false;
|
|
|
|
|
}
|
|
|
|
|
}
|