playerCharacter.AdjustHealthUI C# (CSharp) Метод

AdjustHealthUI() приватный Метод

private AdjustHealthUI ( float health ) : void
health float
Результат void
    private void AdjustHealthUI(float health)
    {
        heart1.SetActive (health >= 10f);
        heart2.SetActive (health >= 20f);
        heart3.SetActive (health >= 30f);
    }