Files
Simulation/Assets/WorkSpace/LH/LogicData/LogicDataInfoItem.cs
2025-06-16 16:43:28 +09:00

27 lines
611 B
C#

using UnityEngine;
using TMPro;
namespace Octopus.Simulator
{
public class LogicDataInfoItem : MonoBehaviour
{
[SerializeField]
TMP_Text Text_Label;
[SerializeField]
TMP_Text Text_Value;
public void Set(string label, string value)
{
var translate = Translator.Translate(label);
if (!string.IsNullOrEmpty(translate))
{
Text_Label.text = translate;
}
else
{
Text_Label.text = label;
}
Text_Value.text = value;
}
}
}