27 lines
532 B
C#
27 lines
532 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Waypoint : MonoBehaviour
|
|
{
|
|
public float DesiredRotation = 0;
|
|
public Waypoint Next;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
void OnDrawGizmos()
|
|
{
|
|
if (Next == null) return;
|
|
Gizmos.color = Color.green;
|
|
Gizmos.DrawLine(transform.position, Next.transform.position);
|
|
}
|
|
}
|