Heya,
I know this probably a noobie question, so i will say sorry now but i cannot find the answer i need.
I just want to save a score in the player prefs. I will need a Grid but first i want to get past this. would anyone be able to help please, as you see the below code will show a score but the commented out code is wrong. Hope you can help
Cybershead
using UnityEngine;
using System.Collections;
public class HighScores : MonoBehaviour {
public UILabel highScore;
void Start () {
// highScore = PlayerPrefs.GetInt("HighScorePref");
}
void Update () {
highScore.text = ScoresManager.CurrentPoints.ToString ();
// highScore = PlayerPrefs.SetInt("HighScorePref");
}
}