// Update is called once per frame void Update() { healthBar_fill.fillAmount = health.GetHPFraction(); }
// Update is called once per frame void Update() { healthbar.value = health.GetHPFraction(); healthbar.gameObject.SetActive(health.GetAlive()); }