23 lines
470 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|