// Update is called once per frame
 void Update()
 {
     healthBar_fill.fillAmount = health.GetHPFraction();
 }
Ejemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        healthbar.value = health.GetHPFraction();

        healthbar.gameObject.SetActive(health.GetAlive());
    }