Ejemplo n.º 1
0
// --> Trial Mode is finished. Display result Page
    IEnumerator WinProcessTimeTrial()
    {
        #region
        if (canvas_MainMenu)
        {
            canvas_MainMenu.GoToOtherPageWithHisNumber(10);                                                                             // Congratulation page
        }
        //yield return new WaitForSeconds (TimeBetweenCongratulationAndResultBoard);
        float t = 0;
        while (t != TimeBetweenCongratulationAndResultBoard)
        {
            if (!b_Pause)
            {
                t = Mathf.MoveTowards(t, TimeBetweenCongratulationAndResultBoard, Time.deltaTime);
            }
            yield return(null);
        }
        if (canvas_MainMenu)
        {
            canvas_MainMenu.GoToOtherPageWithHisNumber(9);                                                                                      // Save your name and score page
        }
        if (leaderboard)
        {
            leaderboard.InitPlayerScore();
        }

        if (eventSystem)
        {
            eventSystem.SetSelectedGameObject(buttonValidateLetter_FirstSelectedGameObject);
        }
        yield return(null);

        #endregion
    }
Ejemplo n.º 2
0
// --> Trial Mode is finished. Display result Page
    IEnumerator WinProcessTimeTrial()
    {
        if (canvas_MainMenu)
        {
            canvas_MainMenu.GoToOtherPageWithHisNumber(10);                                                                                     // Congratulation page
        }
        yield return(new WaitForSeconds(TimeBetweenCongratulationAndResultBoard));

        if (canvas_MainMenu)
        {
            canvas_MainMenu.GoToOtherPageWithHisNumber(9);                                                                                      // Save your name and score page
        }
        if (leaderboard)
        {
            leaderboard.InitPlayerScore();
        }

        if (eventSystem)
        {
            eventSystem.SetSelectedGameObject(buttonValidateLetter_FirstSelectedGameObject);
        }
    }