public override void OnLevelLoaded(LoadMode mode) { base.OnLevelLoaded(mode); Debugger.Log("ON_LEVEL_LOADED"); Debugger.OnLevelLoaded(); try { // Don't load if it's not a game if (mode != LoadMode.LoadGame && mode != LoadMode.NewGame) { return; } BuildingThemesManager.instance.ImportThemes(); PolicyPanelEnabler.UnlockPolicyToolbarButton(); UIThemeManager.Initialize(); UIStyleButtonReplacer.ReplaceStyleButton(); } catch (Exception e) { Debugger.LogException(e); } }
public override void OnLevelLoaded(LoadMode mode) { base.OnLevelLoaded(mode); // Don't load if it's not a game if (mode != LoadMode.LoadGame && mode != LoadMode.NewGame) { return; } Debugger.Log("ON_LEVEL_LOADED"); Debugger.AppendModList(); Debugger.AppendThemeList(); PolicyPanelEnabler.UnlockPolicyToolbarButton(); UIThemeManager.Initialize(); }