27 lines
611 B
C#
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;
|
|
}
|
|
}
|
|
} |