Game Development Reference
In-Depth Information
Saving and loading the local high score
In this section, we will be creating the
LocalHiscore
script, which we will use to save
and load the users' data. We will use
PlayerPrefs
,
BinaryFormatter
, and
MemoryStream
to save and load the user data. Then, we will add the ability to save and
load the local high score to our
UIHiscore
script.