20 lines
499 B
C#
20 lines
499 B
C#
using TMPro;
|
|
|
|
namespace UVC.UI
|
|
{
|
|
public class UVCKeyValueItem : MonoBehaviour
|
|
{
|
|
TextMeshProUGUI text_Key;
|
|
TextMeshProUGUI text_Value;
|
|
|
|
private void Awake()
|
|
{
|
|
text_Key = transform.Find(nameof(text_Key)).GetComponent<TextMeshProUGUI>();
|
|
text_Value = transform.Find(nameof(text_Value)).GetComponent<TextMeshProUGUI>();
|
|
}
|
|
public void SetValue(string value)
|
|
{
|
|
text_Value.SetText(value);
|
|
}
|
|
}
|
|
} |