mmorpg/Assets/Script/healthSlider.cs
2024-08-23 16:17:24 +05:30

18 lines
314 B
C#
Executable File

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class healthSlider : MonoBehaviour
{
private TMP_Text txt;
public Slider slider;
private void Update() {
txt.text = $"{slider.value}/{slider.maxValue}";
}
}