using UnityEngine;
using System.Collections;
using System;

public class HighscoreTest : MonoBehaviour {
	bool first = true;
	// Update is called once per frame
	void Update () {
		if (!first) {
			//throw new InvalidOperationException("New level already loaded.");
		}
		if (first) {
			GameObject.Find ("ScoreHolder").GetComponent<ScoreHolder>().setScore(123000);
			//SceneManager.LoadScene ("Highscore", SceneManagement.LoadSceneMode.Single);
			Application.LoadLevel ("Highscore");
			first = false;
		}
	}
}
