title: Unity 5 - Playerprefs saving in unity but not on android?
body: <p>I have this attached to my hero object that gets destroyed . Could that be part of the problem? All I want to do is save the highscore then display it on my start scene. Here is the code: </p>
  
  <pre><code>public int highscore; 
  public int score;   
  
  
  void AddPoint1()
  {
  
  
      if (score &gt; highscore) {
          highscore = score;
          PlayerPrefs.SetInt ("highscore", score);
          PlayerPrefs.Save ();
  
      }
  }
  </code></pre>
  
  <p>Here is second script attached to empty object in start scene (different scene)</p>
  
  <pre><code>void OnGUI()
  { 
      GUI.Label (new Rect (Screen.width / 2, Screen.height/2, 100, 100), "Highscore: " + PlayerPrefs.GetInt("highscore"), customGuistyle);
  }
  </code></pre>