Beispiel #1
0
    private void UpdatePowerMeter()
    {
        int rawDamage = 0;

        if (_user == null || _action == null)
        {
            Debug.LogWarning("Explosion damage can't be approximated as user stats or the Explosion action are missng.");
        }
        else
        {
            rawDamage = _action.GetRawDamage(_user.stats, _explosionPower);
        }
        _explosionUI.UpdatePower(_explosionPower, rawDamage);
    }