private void LoadNextLevelOrQuit() { if (isInitializedByRunner) { return; } TestSceneNumber += 1; string testScene = m_Configurator.GetIntegrationTestScenes(TestSceneNumber); if (testScene != null) { SceneManager.LoadScene(Path.GetFileNameWithoutExtension(testScene)); } else { TestRunnerCallback.AllScenesFinished(); k_ResultRenderer.ShowResults(); #if UNITY_EDITOR var prevScenes = m_Configurator.GetPreviousScenesToRestore(); if (prevScenes != null) { UnityEditor.EditorBuildSettings.scenes = prevScenes; } #endif if (m_Configurator.isBatchRun && m_Configurator.sendResultsOverNetwork) { Application.Quit(); } } }
private void LoadNextLevelOrQuit() { if (isInitializedByRunner) { return; } TestSceneNumber += 1; string testScene = m_Configurator.GetIntegrationTestScenes(TestSceneNumber); if (testScene != null) { SceneManager.LoadScene(Path.GetFileNameWithoutExtension(testScene)); } else { TestRunnerCallback.AllScenesFinished(); k_ResultRenderer.ShowResults(); if (m_Configurator.isBatchRun && m_Configurator.sendResultsOverNetwork) { Application.Quit(); } } }
private void LoadNextLevelOrQuit() { Debug.Log("LoadNextLevelOrQuit"); if (isInitializedByRunner) { return; } TestSceneNumber++; string integrationTestScenes = m_Configurator.GetIntegrationTestScenes(TestSceneNumber); Debug.Log("Next scene = " + integrationTestScenes); if (integrationTestScenes != null) { Debug.Log("Loading next scene: " + integrationTestScenes); SceneManager.LoadScene(Path.GetFileNameWithoutExtension(integrationTestScenes), LoadSceneMode.Single); return; } Debug.Log("AllScenesFinished"); TestRunnerCallback.AllScenesFinished(); k_ResultRenderer.ShowResults(); if (m_Configurator.isBatchRun && m_Configurator.sendResultsOverNetwork) { Application.Quit(); } }