public void CreateKidCharacter() { int r = Random.Range(0, 5); Character newCharacter; if (r == 0) { newCharacter = new Cartman(); } else if (r == 1) { newCharacter = new Kenny(); } else if (r == 2) { newCharacter = new Kyle(); } else if (r == 3) { newCharacter = new Stan(); } else if (r == 4) { newCharacter = new Wendy(); } }
public void CreateRandomCharacter() { int r = Random.Range(0, 9); Character newCharacter; if (r == 0) { newCharacter = new Alien(); } else if (r == 1) { newCharacter = new Barbrady(); } else if (r == 2) { newCharacter = new Cartman(); } else if (r == 3) { newCharacter = new Chef(); } else if (r == 4) { newCharacter = new Jimbo(); } else if (r == 5) { newCharacter = new Kenny(); } else if (r == 6) { newCharacter = new Kyle(); } else if (r == 7) { newCharacter = new Stan(); } else if (r == 8) { newCharacter = new Wendy(); } }
private void SoundPlayer_OnMediaOpened(object sender, RoutedEventArgs e) { Cartman.Play(); }
private void SoundPlayer_OnMediaEnded(object sender, RoutedEventArgs e) { Cartman.Stop(); RecordedQuestion.Text = string.Empty; Question.Text = string.Empty; }