Ejemplo n.º 1
0
 private void ChangeTargetHudResource(float aResourcePercentage, string aResourceText)
 {
     myTargetHUD.SetResourceBarFillAmount(aResourcePercentage);
     myTargetHUD.SetResourceText(aResourceText);
     if (myTarget.GetComponent <Resource>() != null)
     {
         myTargetHUD.SetResourceBarColor(myTarget.GetComponent <Resource>().myResourceColor);
     }
 }
Ejemplo n.º 2
0
    private void ChangeMyHudResource(float aResourcePercentage, string aResourceText)
    {
        if (!hasAuthority)
        {
            return;
        }

        myCharacterHUD.SetResourceBarFillAmount(aResourcePercentage);
        myCharacterHUD.SetResourceText(aResourceText);
        myCharacterHUD.SetResourceBarColor(myResource.myResourceColor);
    }