Exemplo n.º 1
0
 // 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);
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     height   = FindObjectOfType <Height>();
     plats    = FindObjectOfType <PlatsCount>();
     GetTimer = FindObjectOfType <Timer>();
 }