Exemplo n.º 1
0
 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);
 }