ShowScoreList
.Method ShowScoreList:Int()
LoadHighScore()
GetValue
, and fill the text object array via the SetText
method.For Local y:Int = 1 To eng.scoreList.Count() txtHighScore[y-1].SetText(eng.scoreList.GetValue(y)) Next
layerScore
layer to active
and the layerTitle
layer to inactive
. Then, close the method.layerScore.SetActive(True) layerTitle.SetActive(False) Return 0 End
To load the high score data from storage and set up our list objects, we can now use the ShowScoreList
method. Besides taking care of the loading and storing the values in the list, it will actually show the high score list on the screen.
3.17.76.175