Exemplo n.º 1
0
 public void PlayAnimalSpeak(int animal, SPEECH speech)
 {
     if (animal == 0) {
         if(speech == SPEECH.LOSE) {
             Debug.Log("playing cat lose");
         }
         catSpeech.clip = catSpeeches[(int)speech];
         catSpeech.Play ();
     } else if (animal == 1) {
         dogSpeech.clip = dogSpeeches[(int)speech];
         dogSpeech.Play();
     }
 }
Exemplo n.º 2
0
 public void PlayAnimalSpeak(int animal, SPEECH speech)
 {
     if (animal == 0)
     {
         if (speech == SPEECH.LOSE)
         {
             Debug.Log("playing cat lose");
         }
         catSpeech.clip = catSpeeches[(int)speech];
         catSpeech.Play();
     }
     else if (animal == 1)
     {
         dogSpeech.clip = dogSpeeches[(int)speech];
         dogSpeech.Play();
     }
 }