// Update is called once per frame void Update() { if (healthbar != null) { healthbar.SetHealthFrac(m_health / (float)maxHealth); } }