public static void setScene(SceneBase scene, bool isGameLevel) { SceneManager.isGameLevel = isGameLevel; if (current != null) current.terminate(); current = scene; if (current != null) current.start(); }
public static void setScene(SceneBase scene, bool isGameLevel) { SceneManager.isGameLevel = isGameLevel; if (current != null) { current.terminate(); } current = scene; if (current != null) { current.start(); } }