2025-10-09 17:36:27 +08:00

15 lines
346 B
C#

using System;
using TMPro;
using UnityEngine;
namespace YiLiao.SiBuChuZhen
{
public class LengthPanel : MonoBehaviour
{
public LinearMapping linearMapping;
public TextMeshProUGUI textMeshPro;
void Update()
{
textMeshPro.text = Convert.ToInt32(linearMapping.value * 55) + "cm";
}
}
}