Esempio n. 1
0
 public void PickedUpPowerup(PowerupType powerUpType)
 {
     if (powerUpType == PowerupType.Health)
     {
         _health = maxHealth;
         healthBar.ShowPercentage((float)_health / maxHealth);
     }
     else
     {
         type = powerUpType.ToCharacterType();
         SetupLook();
     }
     AudioSource.PlayClipAtPoint(powerupSound, Vector3.zero);
 }