// Start is called before the first frame update void Start() { //PlayerPrefs.DeleteKey("HighScore"); player = FindObjectOfType <Player>(); height = FindObjectOfType <Height>(); plats = FindObjectOfType <PlatsCount>(); GetTimer = FindObjectOfType <Timer>(); highScore = PlayerPrefs.GetInt("HighScore", 0); }
// Start is called before the first frame update void Start() { height = FindObjectOfType <Height>(); plats = FindObjectOfType <PlatsCount>(); GetTimer = FindObjectOfType <Timer>(); }