Implemented health bar and diamond count in the new gui
This commit is contained in:
parent
105055b307
commit
c42406e615
14 changed files with 668 additions and 505 deletions
|
|
@ -20,6 +20,7 @@ namespace UI
|
|||
[SerializeField] private BlackDieAbility blackDieAbility;
|
||||
[SerializeField] private ChestRewardSelection chestRewardSelection;
|
||||
[SerializeField] private TorchAbility torchAbility;
|
||||
[SerializeField] private Player player;
|
||||
|
||||
public static UIManager Instance { get; private set; }
|
||||
|
||||
|
|
@ -69,6 +70,9 @@ namespace UI
|
|||
torchAbility.AbilityGained += hudController.SetKeyAbilityEnabled;
|
||||
TorchAbility.TorchAbilityUsed += hudController.MarkKeyAbilityUsed;
|
||||
hudController.KeyAbilityClicked += torchAbility.UseClicked;
|
||||
|
||||
player.DiamondCountUpdated += hudController.SetDiamondCount;
|
||||
player.HealthUpdated += hudController.SetHealth;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue