Files
XRLib/Assets/Scripts/Simulator/Components/AGV/AGVPath.cs
2025-11-04 11:02:02 +09:00

23 lines
470 B
C#

using Simulator.Data.Transport;
using System.IO;
using UnityEngine;
using UVC.Data.Core;
public class AGVPath : MonoBehaviour
{
PathDataClass data;
LineRenderer lineRenderer;
private void Awake()
{
lineRenderer=GetComponent<LineRenderer>();
}
public void SetPathData(PathDataClass data,Vector3 from,Vector3 to)
{
this.data = data;
lineRenderer.SetPosition(0, from);
lineRenderer.SetPosition(1, to);
}
}