示例#1
0
    public void SetScore(int score, bool isNewHighscore)
    {
        transform.Find("ScoreCanvas").Find("Text").GetComponent <Text> ().text = score.ToString();
//		Debug.Log ("IS NEW HIGHSCORE? " + isNewHighscore);

        if (isNewHighscore)
        {
            SaveManager.AttemptToSavePlayer(score, "ABC");
        }
    }