Пример #1
0
	void Start(){
		sc  = GetComponent<ScoreScript> ();
		hud = GameObject.Find ("HUD").GetComponent<HUD>();
		hud.nRecord = sc.GetRecord ();
		hud.nScore  = sc.GetScore ();
		sc.ResetScore (); //zera os pontos
	}