LifeIndicator.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
	void Update () {
		if(hero != null)
		{
			_lifeValue = Mathf.CeilToInt(hero.getLife()*maxLife);
			_lifeValueLabel.text = _lifeValue.ToString();
		}
	}
}
LifeIndicator