// Update is called once per frame void FixedUpdate() { if (Input.anyKeyDown) { main.loadLevel(Application.loadedLevel + 1, 0.0f); } }
void FixedUpdate() { if (!exitingLevel && Input.GetKey(KeyCode.Escape)) { exitingLevel = true; Screen.lockCursor = false; main.loadLevel(2, 0.0f); } }
void Start() { Screen.showCursor = false; main = this.GetComponent <_MAIN>(); main.loadLevel(main.Intro, delay); }
public void Go(int level) { main.loadLevel(level, 0.0f); }