Question by 
               AlexStf · Mar 09, 2017 at 04:07 PM · 
                c#unity 5scripting problemgamescripting beginner  
              
 
              Adding a Highscore to game
Can someone help me with this problem ? can't seem to figure it out , newb here. 
 
                 
                fbunity.jpg 
                (125.1 kB) 
               
 
              
               Comment
              
 
               
              Where is the error co$$anonymous$$g from? For starters, you cannot call PlayerPrefs.GetInt() from there.
 void Awake () 
 {
     // ...
 
     this.highScore = PlayerPrefs.GetInt("HighScore");
 
     // ...
 }
Try putting it into your Awake()
At least clarify what the actual problem is. And use the "101010" button to post the actual code. It makes it more possible to try the code by copy and paste.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                