// Start is called before the first frame update void Start() { OG2D = this; score = 0; highScore = PlayerPrefs.GetInt("HighScore1", 0); scoreText = GameObject.Find("ScoreText").GetComponent <Text>(); highText = GameObject.Find("HighText").GetComponent <Text>(); }
// Use this for initialization void Start() { OG2D = this; score = 0; highscore = PlayerPrefs.GetInt("Highscore1", 0); }
// Use this for initialization void Start () { OG2D = this; score = 0; highscore = PlayerPrefs.GetInt("Highscore1",0); }