Exemple #1
0
    public void playQuestionVO()
    {
        AudioClip _instructionalVO = getInstructionalVO();
        AudioClip _nameOfClip      = hangingObject_VO(selectedTitle);

        if (currentGameMode == (int)GameModes.mode_different)
        {
            listOfClips = new List <AudioClip>();
            listOfClips.Add(_instructionalVO);
            NF_SoundManager.playAudioList(listOfClips);
        }
        else
        {
            listOfClips = new List <AudioClip>();
            listOfClips.Add(_instructionalVO);
            listOfClips.Add(_nameOfClip);
            if (AGGameState.currentGameIndex == (int)AGGameIndex.k_2DShapesColors && currentCategoryID == (int)SimpleColors_CategoryID.id_Colors)
            {
                if (answerCount > 1)
                {
                    listOfClips.Add(_balloonsVO);
                }
                else
                {
                    listOfClips.Add(_balloonVO);
                }
            }
            NF_SoundManager.playAudioList(listOfClips);
        }
    }
Exemple #2
0
    public IEnumerator playInitialVoiceOvers(AudioClip _instructionalVO, AudioClip _nameOfClip, float delay)
    {
        yield return(new WaitForSeconds(delay));

        if (currentGameMode == (int)GameModes.mode_different)
        {
            listOfClips = new List <AudioClip>();
            listOfClips.Add(_instructionalVO);
            NF_SoundManager.playAudioList(listOfClips);
        }
        else
        {
            listOfClips = new List <AudioClip>();
            listOfClips.Add(_instructionalVO);
            listOfClips.Add(_nameOfClip);
            if (AGGameState.currentGameIndex == (int)AGGameIndex.k_2DShapesColors && currentCategoryID == (int)SimpleColors_CategoryID.id_Colors)
            {
                if (answerCount > 1)
                {
                    listOfClips.Add(_balloonsVO);
                }
                else
                {
                    listOfClips.Add(_balloonVO);
                }
            }
            NF_SoundManager.playAudioList(listOfClips);
        }
    }
Exemple #3
0
 public void playSoundClip()
 {
     if ((ickyStates == NF_IckyAnimationStates.icky_eating) || (ickyStates == NF_IckyAnimationStates.icky_angleJumpNEat))
     {
         listOfClips = new List <AudioClip>();
         listOfClips.Add(voiceOversIcky[(int)ickySounds.s_yummy]);
         NF_SoundManager.playAudioList(listOfClips);
         NF_SoundManager.playSFX(voiceOversIcky[(int)ickySounds.s_eating]);
     }
     else if (ickyStates == NF_IckyAnimationStates.icky_wrongAns)
     {
         int randomIndex = Random.Range(8, 13);
         if (randomIndex == 12)
         {
             NF_QuestionLoader questionLoader = GameObject.Find("Question").GetComponent <NF_QuestionLoader>();
             listOfClips = new List <AudioClip>();
             listOfClips.Add(voiceOversIcky[randomIndex]);
             listOfClips.Add(questionLoader.hangingObject_VO(questionLoader.selectedTitle));
             NF_SoundManager.playAudioList(listOfClips);
         }
         else
         {
             listOfClips = new List <AudioClip>();
             listOfClips.Add(voiceOversIcky[randomIndex]);
         }
         NF_SoundManager.playAudioList(listOfClips);
     }
     else if (ickyStates == NF_IckyAnimationStates.icky_celebration)
     {
         listOfClips = new List <AudioClip>();
         listOfClips.Add(voiceOversIcky[7]);
         NF_SoundManager.playAudioList(listOfClips);
         NF_SoundManager.playSFX(voiceOversIcky[13]);
     }
     else if (ickyStates == NF_IckyAnimationStates.icky_giggle)
     {
         int s = UnityEngine.Random.Range(3, 6);
         listOfClips = new List <AudioClip>();
         listOfClips.Add(voiceOversIcky[s]);
         NF_SoundManager.playAudioList(listOfClips);
     }
 }