forked from cgvr/DeltaVR
deltavr multiplayer 2.0
This commit is contained in:
22
Assets/_PROJECT/Scripts/Robotics/NavPoint.cs
Normal file
22
Assets/_PROJECT/Scripts/Robotics/NavPoint.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class NavPoint : MonoBehaviour
|
||||
{
|
||||
public NavPoint previous;
|
||||
public NavPoint next;
|
||||
|
||||
public NavPoint GetNext()
|
||||
{
|
||||
return next;
|
||||
}
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
if (next == null) return;
|
||||
Gizmos.color = Color.yellow;
|
||||
Gizmos.DrawLine(transform.position, next.transform.position);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user