Example #1
0
    void gameFinished()
    {
        if (score == scoreMax)
        {
            NextLevelButton.nextLvLAppear();
            BackButton.bttnAppear();
            CloseButton.bttnAppear();

            GameObject[] temps = GameObject.FindGameObjectsWithTag("CardTag");

            for (int i = 0; i <= temps.Length - 1; i++)
            {
                temps[i].SetActive(false);
            }

            lvlPassedSign.appear();
        }
    }
Example #2
0
    void gameFinished()
    {
        if (score == scoreMax)
        {
            BackButton.bttnAppear();
            CloseButton.bttnAppear();

            GameObject[] temps = GameObject.FindGameObjectsWithTag("CardTag");

            for (int i = 0; i <= temps.Length - 1; i++)
            {
                temps[i].SetActive(false);
            }

            lvlPassedSign.appear();

            gameStatus = true;
        }
        else
        {
            gameStatus = false;
        }
    }