Search Unity

Save Score and Load Score

Discussion in 'Scripting' started by AppleJuicy, Mar 1, 2015.

  1. AppleJuicy

    AppleJuicy

    Joined:
    Nov 12, 2014
    Posts:
    31
    What is the simple way for saving score for sceneA and load score in sceneB?
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
    Either use a singleton, or a game object that has a script attached holding the score. For the game object to stay between scenes use this.

    If you want to save the score between sessions. Then use PlayerPrefs.