Changed font

This commit is contained in:
Max 2025-03-07 10:35:06 +01:00
parent d3e2d425bf
commit a0ec711c4a
12 changed files with 1700 additions and 42 deletions

View file

@ -13,7 +13,7 @@ public class Player : MonoBehaviour
[SerializeField] private int maxHealth;
[SerializeField] private int diamonds;
[SerializeField] private GameObject rooms;
private int _healthIndex = 0;
private int _healthIndex;
private readonly int[] _healthBar = {0, 0, -1, -2, -4, -6, -9, -12, -16, -20};
private void OnEnable()
@ -29,7 +29,9 @@ public class Player : MonoBehaviour
RoomRewards.DamageDealt -= TakeDamage;
}
private void Start() {
private void Start()
{
_healthIndex = 0;
UpdateGUI();
}

View file

@ -24,22 +24,9 @@ namespace UI
[SerializeField] private ArmorAbility armorAbility;
[SerializeField] private Player player;
public static UIManager Instance { get; private set; }
private Dictionary<Die, Button> _dieToButtonMapping = new Dictionary<Die, Button>();
void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
return;
}
Instance = this;
DontDestroyOnLoad(gameObject);
}
private void OnEnable()
{
chestPopUpController = chestPopUpControllerGO.GetComponent<ChestPopUpController>();