Пример #1
0
 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);
     }
 }
Пример #2
0
        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);
            }
        }