/*
Play a named audio clip.
Does not restart the clip if it is played twice in a row.
Will stop a previously playing clip to play this new clip.
*/
public void PlayClip(string name)
{
if (name == current_clip)
{
return;
} // if
if (current_clip != null)
{
StopClip();
} // if
((GameObject)jukebox[name]).audio.Play();
current_clip = name;
} // PlayClip()
public void StopClip()
{
((GameObject)jukebox[current_clip]).audio.Stop();
} // StopClip()