In my script, these two lines:
var newAlpha : float = 1.0 - (health / startingHealth);
staticRenderer.material.color.a = newAlpha;
change the alpha of a material. I need to add another 2 lines like these, which will change the volume of an audio source. Any ideas?