示例#1
0
    private IEnumerator afterGameJobs()
    {
        shapesManager.DestroyAllCandy();
        go_hint.SetActive(false);
        int.TryParse(shapesManager.ScoreText.text, out score_from_the_game);
        //compare to last score in the leaderboard
        last_score = Leaderboard.GetEntry(4).score;
        //is this really a highscore?
        if (score_from_the_game > last_score)
        {
            sv_AtEndGame.SetActive(true);
            setTimerVisibility(false);
        }
        else
        {
            ProceedToShowScore();
        }

        yield return(new WaitForSeconds(0.5f));

        StopCoroutine("afterGameJobs");
    }