Esempio n. 1
0
 public void EndTheGame()
 {
     if (GameManager.Instance.Score > ScoreFileManager.LoadScore())
     {
         ScoreFileManager.SaveScore();
     }
     SceneManager.LoadScene(0);
 }
 public void PlayAgain()
 {
     if (GameManager.Instance.Score > ScoreFileManager.LoadScore())
     {
         ScoreFileManager.SaveScore();
     }
     FirstPlay.Instance.RestartGame();
 }
Esempio n. 3
0
    public void TopScoreButtom()
    {
        GameManager.Instance.highScoreManager.getScorefromFile(ScoreFileManager.LoadScore());
#if UNITY_ANDROID
        if (PlayGamesPlatform.Instance.localUser.authenticated)
        {
            PlayGamesPlatform.Instance.ShowLeaderboardUI();
        }
        else
        {
            Debug.Log("Cannot show leaderboard: not authenticated");
        }
#endif
    }