// 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>(); }
//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>(); }