diff --git a/Assets/_Scripts/Managers/UIManager.cs b/Assets/_Scripts/Managers/UIManager.cs new file mode 100644 index 0000000..d7037c6 --- /dev/null +++ b/Assets/_Scripts/Managers/UIManager.cs @@ -0,0 +1,19 @@ +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +public class UIManager : MonoBehaviour +{ + [Header("Score UI")] + [SerializeField] private TextMeshProUGUI _scoreText; + [SerializeField] private Slider _experienceSlider; + [SerializeField] private TextMeshProUGUI _multiplierText; + + public void SetScoreText(int value) => _scoreText.text = value.ToString(); + + public void SetExperienceSliderValue(int value) => _experienceSlider.value = value; + + public void SetExperienceSliderMaxValue(int value) => _experienceSlider.maxValue = value; + + public void SetMultiplierText(int value) => _multiplierText.text = $"×{value}"; +} diff --git a/Assets/_Scripts/Managers/UIManager.cs.meta b/Assets/_Scripts/Managers/UIManager.cs.meta new file mode 100644 index 0000000..43c11e5 --- /dev/null +++ b/Assets/_Scripts/Managers/UIManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 51461a5e829c16567902ce08ad663025 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: