playerCharacter.AdjustHealthUI C# (CSharp) Méthode

AdjustHealthUI() private méthode

private AdjustHealthUI ( float health ) : void
health float
Résultat void
    private void AdjustHealthUI(float health)
    {
        heart1.SetActive (health >= 10f);
        heart2.SetActive (health >= 20f);
        heart3.SetActive (health >= 30f);
    }