示例#1
0
    private void UpdateShopUI()
    {
        shopPlayerHealthBar.UpdateHealth(Manager.Instance.playerHealth.percentageHealth);
        shopPlayerHealthText.UpdateHealthText(Manager.Instance.playerHealth.currentHealth, Manager.Instance.playerHealth.currentMaxHealth);

        shopPlayerMaxHealthBar.UpdateHealth(Manager.Instance.playerHealth.percentageMaxHealth);
        shopPlayerMaxHealthText.UpdateHealthText(Manager.Instance.playerHealth.currentMaxHealth, Manager.Instance.playerHealth.maximumMaxHealth);

        shopPlayerAttackPowerBar.UpdateHealth(Manager.Instance.playerMovement.percentageAttackPower);
        shopPlayerAttackPowerText.UpdateHealthText(Manager.Instance.playerMovement.attackPower, Manager.Instance.playerMovement.maxAttackPower);

        healthPotionCostUI.UpdateScore(healthPotionCost);
        increaseAttackDamageCostUI.UpdateScore(increaseAttackDamageCost);
        increaseMaxHealthCostUI.UpdateScore(increaseMaxHealthCost);

        shopScoreUI.UpdateScore(Manager.Instance.playerInventory.coinCount);
    }
示例#2
0
 public void UpdateHealth()
 {
     playerHealthBar.UpdateHealth(Manager.Instance.playerHealth.percentageHealth);
     healthText.UpdateHealthText(Manager.Instance.playerHealth.currentHealth, Manager.Instance.playerHealth.currentMaxHealth);
 }
示例#3
0
 public void UpdateMana()
 {
     playerManaBar.UpdateHealth(Manager.Instance.playerHealth.percentageMana);
     manaText.UpdateHealthText(Manager.Instance.playerHealth.currentMana, Manager.Instance.playerHealth.currentMaxMana);
 }