You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
588 B

using System.Collections.Generic;
using UnityEngine;
namespace ET
{
public class GizmosDebug: MonoBehaviour
{
public static GizmosDebug Instance { get; private set; }
public List<Vector3> Path;
private void Awake()
{
Instance = this;
}
private void OnDrawGizmos()
{
if (this.Path.Count < 2)
{
return;
}
for (int i = 0; i < Path.Count - 1; ++i)
{
Gizmos.DrawLine(Path[i], Path[i + 1]);
}
}
}
}