private static void KGameEnd() { var configLoader = new GameObject("ConfigLoader"); configLoader.AddComponent <KConfigLoader>(); KSceneManager.Load(); }
/// <summary> /// 当场景加载完成后会自动调用此方法 /// </summary> /// <param name="level"></param> void OnLevelWasLoaded(int level) { KSceneManager.Load(); }