using UnityEngine; using TMPro; using RTG; public class Panel_Grid : MonoBehaviour { [SerializeField] TMP_Text text; private void Awake() { text = gameObject.GetComponent(); } void Start() { FindAnyObjectByType().onAccumulationUpdated += UpateText; } void UpateText(float value) { text.text = $"grid : {value}M"; } }