// Update is called once per frame
 void Update()
 {
     healthBar_fill.fillAmount = health.GetHPFraction();
 }
示例#2
0
    // Update is called once per frame
    void Update()
    {
        healthbar.value = health.GetHPFraction();

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