21 lines
567 B
C#
21 lines
567 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class StepInfoItem : MonoBehaviour
|
|
{
|
|
[SerializeField] public TextMeshProUGUI stepTxt;
|
|
[SerializeField] public TextMeshProUGUI poseTxt;
|
|
[SerializeField] public TextMeshProUGUI toolTxt;
|
|
[SerializeField] public TextMeshProUGUI accuTxt;
|
|
|
|
public void SetData(RobotMoveStep step)
|
|
{
|
|
if (step == null) return;
|
|
|
|
stepTxt.text = $"S{step.StepNumber}";
|
|
poseTxt.text = $"POSE {step.StepNumber}";
|
|
toolTxt.text = $"Tool {step.Tool}";
|
|
accuTxt.text = $"ACCU={step.Accu}";
|
|
}
|
|
}
|