public static void ChangeScene(string sceneName) { if (nowScene == null) { Debug.Log("Somthing is wrong! there is no added scene."); return; } nowScene.ClearManager(); nowScene = null; SceneManager.LoadScene(sceneName); }