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();
        }
    }
예제 #3
0
 private void SoundPlayer_OnMediaOpened(object sender, RoutedEventArgs e)
 {
     Cartman.Play();
 }
예제 #4
0
 private void SoundPlayer_OnMediaEnded(object sender, RoutedEventArgs e)
 {
     Cartman.Stop();
     RecordedQuestion.Text = string.Empty;
     Question.Text         = string.Empty;
 }