예제 #1
0
    void UpdateCurrentHealthText()
    {
        float playerCurHealth = playerHealth.GetHealth();
        float playerMaxHealth = playerHealth.GetMaxHealth();
        float earthCurHealth  = earthHealth.GetHealth();
        float earthMaxHealth  = earthHealth.GetStartingHealth();

        upgradeMenu.UpdateHealthText(playerCurHealth, playerMaxHealth, earthCurHealth, earthMaxHealth);
    }