示例#1
0
 void playVoice(voice whichVoice)
 {
     voiceSource.clip = voiceClips [(int)whichVoice];
     voiceSource.Stop();
     voiceSource.Play();
 }
示例#2
0
	void playVoice(voice whichVoice) {
		voiceSource.clip = voiceClips [(int)whichVoice];
		voiceSource.Stop ();
		voiceSource.Play ();
	}