Esempio n. 1
0
    public void clickedPosition(int position)
    {
        deactivateItem(position);

        addScore(pointsPerCorrect);

        soundController.playAudio(position);

        if (position + 1 >= clickableObjects.Length)
        {
            centerItem.activate();

            //CODE PORTION TO SEND INFO TO THE TUTORIAL

            if (isFirstTimeNormalGame())
            {
                GetComponentInChildren <TutorialScript>().centerItemActivated();
            }

            ///////////////////////////////////////////
        }
        else
        {
            activateNextItem(position);
        }

        //CODE PORTION TO SEND INFO TO THE TUTORIAL

        if (isFirstTimeNormalGame())
        {
            GetComponentInChildren <TutorialScript>().actionItemClicked();
        }

        ///////////////////////////////////////////
    }
Esempio n. 2
0
    public void clickedPosition(int position)
    {
        deactivateItem(position);

        //addScore(pointsPerCorrect);

        soundController.playAudio(position);

        if (position + 1 >= clickableObjects.Length)
        {
            centerItem.activate();
        }
        else
        {
            activateNextItem(position);
        }
    }