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