// Update is called once per frame void Update() { if (hero != null) { _lifeValue = Mathf.CeilToInt(hero.getLife() * maxLife); _lifeValueLabel.text = _lifeValue.ToString(); } }