using ScriptableObjectArchitecture;
using TMPro;
using UnityEngine;

namespace AsteroidGame
{
    public class SimpleUiVariable : MonoBehaviour
    {
        [SerializeField] private TMP_Text _textMeshPro;

        [SerializeField] private string _prefix;
        [SerializeField] private IntReference _value;

        private void Update()
        {
            _textMeshPro.text = _prefix + _value.Value;
        }
    }
}