Пример #1
0
    private void ChangeMyHudHealth(float aHealthPercentage, string aHealthText, int aShieldValue)
    {
        if (!hasAuthority)
        {
            return;
        }

        myCharacterHUD.SetHealthBarFillAmount(aHealthPercentage);
        myCharacterHUD.SetHealthText(aHealthText);
        myCharacterHUD.SetShieldBar(aShieldValue, myHealth.myCurrentHealth);
    }
Пример #2
0
 private void ChangeTargetHudHealth(float aHealthPercentage, string aHealthText, int aShieldValue)
 {
     myTargetHUD.SetHealthBarFillAmount(aHealthPercentage);
     myTargetHUD.SetHealthText(aHealthText);
     myTargetHUD.SetShieldBar(aShieldValue, myTarget.GetComponent <Health>().myCurrentHealth);
 }