cvr-props/Assets/ABI.CCK/Components/CVRNavController.cs

18 lines
615 B
C#
Raw Normal View History

2023-01-22 16:38:23 +01:00
using UnityEngine;
using UnityEngine.AI;
namespace ABI.CCK.Components
{
[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;
}
}