예제 #1
0
	// Use this for initialization
	void Start () {	
		timeToLog=true;
		player = GameObject.Find ("Player");
		InvokeRepeating ("logPlayer", 1f, 2f);

		wincollision = GetComponent<WinCollision> ();
		breathtimer = GetComponent<BreathTimer> ();
		logged = false;
		wiicontroller = GetComponent<WiiController> ();
	}
예제 #2
0
	//

	// Use this for initialization
	void Start () {
		boardtext = scoreboard.GetComponent<TextMesh> ();
		wiicontroller = GetComponent<WiiController> ();
		breathtimer = GetComponent<BreathTimer> ();


		//Load all saved highscores and save to HighScoresList
		int j = 1;
		while(PlayerPrefs.HasKey("HighScore"+j) && j<=numberOfHighScores){
			Scores temp = new Scores();
			temp.score = PlayerPrefs.GetInt("HighScore"+j);
			//temp.name = j.ToString();
			temp.name = "";
			HighScoreList.Add(temp);
			j++;
		}
		logwin = false;
		//print ("start... length of highScoreList: " + HighScoreList.Count);
		//logsession = false;
		//7InvokeRepeating ("logPlayer", 1f, 1f);
	}