Пример #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);
 }