CharacterUI.UpdateLife C# (CSharp) Method

UpdateLife() public method

public UpdateLife ( ) : void
return void
    void UpdateLife()
    {
        if (_character != null)
        {
            _life.size = (float)_character._lifeCurrent / _character._lifeMax;
            //_life.maxValue = _character._lifeMax;
            string lifeText = _character._lifeCurrent.ToString() + " / " + _character._lifeMax;
            if (_character.GlobalShieldValue > 0)
                 lifeText += " ( + " + _character.GlobalShieldValue + ")";
            _lifePointsText.text = lifeText;
        }
    }