Ejemplo n.º 1
0
    IEnumerator PlayGreetingSound()
    {
        soundSource.PlayOneShot(instrSound.GetInstructionAudioClip(
                                    (int)InstructionSound.InstructionAC.Hello));
        yield return(new WaitWhile(() => soundSource.isPlaying));

        soundSource.PlayOneShot(instrSound.GetInstructionAudioClip(
                                    (int)InstructionSound.InstructionAC.WhatsName));
        //yield return new WaitWhile(() => soundSource.isPlaying);
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //get the game object that has all the instruction audio clips
        instrSound  = GameObject.Find("InstructionSound").GetComponent <InstructionSound>();
        soundSource = GetComponent <AudioSource>();

        soundSource.PlayOneShot(instrSound.GetInstructionAudioClip(InstructionSound.THANKS));
    }
Ejemplo n.º 3
0
 IEnumerator PlayGreetingSound()
 {
     sound_source.PlayOneShot(instr_sound.GetInstructionAudioClip(InstructionSound.WHATS_LANGUAGE));
     yield return(new WaitWhile(() => sound_source.isPlaying));
 }
Ejemplo n.º 4
0
 private void PlayInstructionSound()
 {
     soundSource.PlayOneShot(instrSound.GetInstructionAudioClip(
                                 (int)InstructionSound.InstructionAC.WhatsActivity));
     //  StartCoroutine(PlayGreetingSound());
 }
Ejemplo n.º 5
0
 private void PlayInstructionSound()
 {
     SoundSource.PlayOneShot(instrSound.GetInstructionAudioClip(
                                 (int)InstructionSound.InstructionAC.MemoryInstruction));
 }
Ejemplo n.º 6
0
 private void PlayInstructionSound()
 {
     _sound_source.PlayOneShot(instr_sound.GetInstructionAudioClip(InstructionSound.RECALL_INSTRUCTION));
 }
Ejemplo n.º 7
0
 public void PlayQuitSound()
 {
     SoundSource.Stop();
     SoundSource.PlayOneShot(instrSound.GetInstructionAudioClip(
                                 (int)InstructionSound.InstructionAC.Thanks));
 }