コード例 #1
0
// 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>();
    }
コード例 #2
0
ファイル: OnGUI2D.cs プロジェクト: xlemuel14/Game-Development
 // Use this for initialization
 void Start()
 {
     OG2D      = this;
     score     = 0;
     highscore = PlayerPrefs.GetInt("Highscore1", 0);
 }
コード例 #3
0
ファイル: OnGUI2D.cs プロジェクト: xlemuel14/Game-Development
	// Use this for initialization
	void Start () {
		OG2D = this;
		score = 0;
		highscore = PlayerPrefs.GetInt("Highscore1",0);
	}