Beispiel #1
0
    public void BoughtItem(Characters.CharsGenres character)
    {
        Debug.Log("Bought character: " + character);
        switch (character)
        {
        case Characters.CharsGenres.Fantasy:
            characters.Fantasy();
            bought = true;
            break;

        case Characters.CharsGenres.Romance:
            characters.Romance();
            bought = true;
            break;

        case Characters.CharsGenres.Comedy:
            characters.Comedy();
            bought = true;
            break;

        case Characters.CharsGenres.Horror:
            characters.Horror();
            bought = true;
            break;

        case Characters.CharsGenres.Music:
            characters.Music();
            bought = true;
            break;

        case Characters.CharsGenres.Mystery:
            characters.Mystery();
            bought = true;
            break;

        case Characters.CharsGenres.Action:
            characters.Action();
            bought = true;
            break;

        case Characters.CharsGenres.Dystopia:
            characters.Dystopia();
            bought = true;
            break;

        case Characters.CharsGenres.Western:
            characters.Western();
            bought = true;
            break;

        case Characters.CharsGenres.Scifi:
            characters.Scifi();
            bought = true;
            break;
        }
    }