void Update() { // If the scene is starting... if (sceneStarting) { // ... call the StartScene function. tc.renderQueue.Clear(); tc.Close(); qm.Close(); StartScene(); } }