Changed font
This commit is contained in:
parent
d3e2d425bf
commit
a0ec711c4a
12 changed files with 1700 additions and 42 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue