コード例 #1
0
    private void ConfigureScoreDisplay()
    {
        string[] scores = PlayerPrefsUtil.GetHighScores();

        for (int x = 0; x < scores.Length; x++)
        {
            if (m_scoreDisplayAscending[x] != null)
            {
                m_scoreDisplayAscending[x].text = (x + 1) + ". " + scores[x];
            }
            else
            {
                LogUtil.PrintWarning(this.gameObject, this.GetType(),
                                     "ConfigureScoreDisplay(): Score Display element at index " + x + " is missing.");
            }
        }
    }