I have a simple scene set up that the player walks around and collects coins. Im using player prefs setInt to store the value of CoinsCollected and then player prefs getInt to get that saved value so it can be displayed on a different scene (The win screen). The game is an android build which is put onto a android tablet for testing purposes. I want the saved value to be saved so if the user quits the game and then later returns to it, the value will b available to be shown when the game loads. How would you go about getting the saved value to stay saved on closing of the game so it can be shown and changed when reopened ?
Any help would be great, thanks.
↧