public static void playShotSound(Gem gem)
{
float vol = Random.Range(instance.volLowRange, instance.volHighRange);
// Play the corresponding sound
switch (gem)
{
case Gem.Red:
instance.sound.PlayOneShot(instance.fireGemSound, vol);
break;
case Gem.Green:
instance.sound.PlayOneShot(instance.healGemSound, vol);
break;
case Gem.Blue:
instance.sound.PlayOneShot(instance.iceGemSound, vol);
break;
case Gem.Purple:
instance.sound.PlayOneShot(instance.stealthGemSound, vol);
break;
case Gem.Yellow:
instance.sound.PlayOneShot(instance.lightningGemSound, vol);
break;
default:
instance.sound.PlayOneShot(instance.aoeGemSound, vol);
break;
}
}