Example #1
0
    public void ChangeCategory()
    {
        int category = gameSettingsManager.GetCategory();

        //Categoria é Drinking Game, então mudar para Family Friendly
        if (category == 0)
        {
            gameSettingsManager.ChangeCategory(1);
            DrinkingGameButton.SetActive(false);
            FamilyFriendlyButton.SetActive(true);
        }
        else //Mudar categoria de Family Friendly para Drinking Game
        {
            gameSettingsManager.ChangeCategory(0);
            DrinkingGameButton.SetActive(true);
            FamilyFriendlyButton.SetActive(false);
        }
    }