Time for action — loading a high score list
- Create a new method called
LoadHighScore
. - Call
LoadState
and store the result inside a local String
variable called state
. - Check if an app state was found and loaded.
- A call to
LoadFromString
from the engine's score list will load the high score list. - Close the IF check, and the method.
To actually show the list, we need to update the text object array that holds the score values. For this, we will create a method in the next section.
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.