コード例 #1
0
ファイル: Bug.cs プロジェクト: 0378935252/ZitgaUnityGame
 // Start is called before the first frame update
 void Start()
 {
     checkL = GameObject.Find("CheckLeft").GetComponent <CheckLeft>();
     checkR = GameObject.Find("CheckRight").GetComponent <CheckRight>();
     checkT = GameObject.Find("CheckTop").GetComponent <CheckTop>();
     checkB = GameObject.Find("CheckBottom").GetComponent <CheckBottom>();
 }
コード例 #2
0
 //static ScoreManager instance;
 // Start is called before the first frame update
 void Start()
 {
     if (!PlayerPrefs.HasKey("isTop"))
     {
         PlayerPrefs.SetInt("isTop", 0);
     }
     if (!PlayerPrefs.HasKey("Already topped"))
     {
         PlayerPrefs.SetInt("Already topped", 0);
     }
     PlayerPrefs.Save();
     username  = PlayerPrefs.GetString("Name");
     highScore = PlayerPrefs.GetInt("High Score");
     check     = GetComponent <CheckTop>();
 }