public virtual void Shutdown() { Closing?.Invoke(); // ProjectSettings is accessing some information from runtime during save AndroidLogcatUserSettings.Save(m_UserSettings, UserSettingsPath, this); SaveEditorSettings(m_Settings); m_Initialized = false; m_Settings = null; m_UserSettings = null; m_Tools = null; m_Dispatcher.Shutdown(); m_Dispatcher = null; }
public virtual void Initialize() { m_Dispatcher = new AndroidLogcatDispatcher(this); m_Dispatcher.Initialize(); m_Settings = LoadEditorSettings(); Directory.CreateDirectory(Path.GetDirectoryName(UserSettingsPath)); m_UserSettings = AndroidLogcatUserSettings.Load(UserSettingsPath); if (m_UserSettings == null) { m_UserSettings = new AndroidLogcatUserSettings(); m_UserSettings.Reset(); } m_Tools = CreateAndroidTools(); m_DeviceQuery = CreateDeviceQuery(); m_Initialized = true; }