Exemplo n.º 1
0
    private void UpdateHealthBar()
    {
        float healthPercent = health / (float)MAX_HEALTH;

        healthBar.SetHealthPercent(healthPercent);
    }