//コンポネントでAudioSourceを付けておいて //AudioClipを切り替えればよい。 var ei:AudioClip; var ha:AudioClip; var tou:AudioClip; var uwa:AudioClip; var ya:AudioClip; function play_ei(){audio.clip = ei;audio.Play();} function play_ha(){audio.clip = ha;audio.Play();} function play_tou(){audio.clip = tou;audio.Play();} function play_uwa(){audio.clip = uwa;audio.Play();} function play_ya(){audio.clip = ya;audio.Play();}