// Update is called once per frame void Update() { if (Input.GetKeyDown("space")) { levelManager.NextLevel(); } }
void GotoNextLevel() { print("goto next level now"); if (levelManager != null) { levelManager.NextLevel(); } }