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); } }
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>(); } }