2020-05-25 03:05:30 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections;
|
2020-05-05 14:11:26 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using TMPro;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class PropertyLabel : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
public TextMeshProUGUI Name;
|
|
|
|
|
|
public TextMeshProUGUI Value;
|
2020-05-25 03:05:30 +01:00
|
|
|
|
public Func<string> ValueFunction;
|
|
|
|
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
|
|
{
|
|
|
|
|
|
Value.text = ValueFunction?.Invoke() ?? "";
|
|
|
|
|
|
}
|
2020-05-05 14:11:26 +01:00
|
|
|
|
}
|