Exemple #1
0
    void Awake()
    {
        instance          = this;
        highscoresDisplay = GetComponent <displayHighScores>();
        DownloadHighScores();

        AddNewHighScore("Omer", 10); AddNewHighScore("OdTest", 1230);
    }
    void Start()
    {
        for (int i = 0; i < highscoreFields.Length; i++)
        {
            highscoreFields[i].text = i + 1 + ". ";
        }

        highscoresManager = GetComponent<highScores>();
        StartCoroutine("RefreshHighscores");
    }
Exemple #3
0
    // Use this for initialization
    void Start()
    {
        for (int i = 0; i < highScoreText.Length; ++i)
        {
            highScoreText [i].text = i + 1 + ". Fectching...";
        }

        highScoreManager = GetComponent <highScores> ();

        StartCoroutine("RefreshHighScores");
    }
 void Awake()
 {
     //AddNewHighscore("Joshua", 200);
     instance = this;
     highscoresDisplay = GetComponent<DisplayHighScores>();
 }