Ejemplo n.º 1
0
 private void OnPlayerWeaponSwapped(Weapon weapon)
 {
     foreach (var ui in _weaponUIs)
     {
         if (ui.CurrentWeapon == weapon)
         {
             ui.PlaySwapAnimation();
         }
         else
         {
             ui.PlayStowAnimation();
         }
     }
     _swapSound.PlayWithPitchRange(.9f, 1.1f);
 }