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(); } }
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(); } }