示例#1
0
        public void Initialize()
        {
            if (!loggingInitialized)
            {
                Application.logMessageReceivedThreaded += OnApplicationLogMessageReceivedThreaded;

                loggingInitialized = true;
            }

            SceneExplorer    = gameObject.AddComponent <SceneExplorer>();
            Watches          = gameObject.AddComponent <Watches>();
            ColorPicker      = gameObject.AddComponent <ColorPicker>();
            scriptEditor     = gameObject.AddComponent <ScriptEditor>();
            appearanceConfig = gameObject.AddComponent <AppearanceConfig>();

            LoadConfig();

            if (Config.UseModToolsConsole)
            {
                console = gameObject.AddComponent <CustomConsole>();
                Logger.SetCustomLogger(console);
            }
        }
示例#2
0
        public void Initialize()
        {
            if (!loggingInitialized)
            {
                Application.logMessageReceivedThreaded += OnApplicationLogMessageReceivedThreaded;

                loggingInitialized = true;
            }

            sceneExplorer            = gameObject.AddComponent <SceneExplorer>();
            watches                  = gameObject.AddComponent <Watches>();
            colorPicker              = gameObject.AddComponent <ColorPicker>();
            scriptEditor             = gameObject.AddComponent <ScriptEditor>();
            scriptEditor.visible     = false;
            sceneExplorerColorConfig = gameObject.AddComponent <SceneExplorerColorConfig>();

            LoadConfig();

            if (config.useModToolsConsole)
            {
                console = gameObject.AddComponent <Console>();
            }
        }