You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nydaliv/Assets/Scripts/UI/PlayerCanvasManager.cs

30 lines
699 B

using Exsersewo.UI.ProgressBar;
using TMPro;
using UnityEngine;
public class PlayerCanvasManager : MonoBehaviour
{
[SerializeField]
TextMeshProUGUI Name;
[SerializeField]
LabelValueHolder Level;
[SerializeField]
ProgressBar HealthBar;
[SerializeField]
ProgressBar ExperienceBar;
public void SetNameText(string text)
=> Name.SetText(text);
public void SetLevelValue(string text)
=> Level.Value.SetText(text);
public void SetHealthValue(ulong value, ulong maxValue)
=> HealthBar.SetValue(value, maxValue);
public void SetExperienceBar(ulong value, ulong maxValue)
=> ExperienceBar.SetValue(value, maxValue);
}