Transform healthBar = HealthBar.GetComponent();
healthBar.localScale = new Vector3(maxHealth, 0, 0);
currentHealth = maxHealth;
,
Transform healthBar = HealthBar.GetComponent();
healthBar.localScale = new Vector3(maxHealth, 0, 0);
currentHealth = maxHealth;