public static void Load() { try { RuntimeHelper_Config.LoadConfig(); RuntimeHelper_Config.InitConfig(); EnableConsole(); SceneManager.sceneLoaded += new UnityAction <Scene, LoadSceneMode>(OnSceneLoaded); } catch (Exception ex) { Debug.LogException(ex); } }
public static void Load() { try { RuntimeHelper_Config.LoadConfig(); RuntimeHelper_Config.InitConfig(); DevConsole.disableConsole = false; //add console commad commandRoot = new CommandRoot("RHCommandGO", true); commandRoot.AddCommand <RuntimeHelperCommand>(); SceneManager.sceneLoaded += new UnityAction <Scene, LoadSceneMode>(OnSceneLoaded); } catch (Exception ex) { Debug.LogException(ex); } }