15 lines
346 B
C#
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";
|
|
}
|
|
}
|
|
} |