void Start() { _manager = this; UiList = new Dictionary <string, UIObject>(); LightweightUINew light = new LightweightUINew(); light.Initialize(); UiList.Add("Light", light); View viewMan = new View(); viewMan.Initialize(); UiList.Add("Main", viewMan); ShortcutNew shortcut = new ShortcutNew(); shortcut.Initialize(viewMan); UiList.Add("Icon", shortcut); viewMan.SetVisible(SettingsManager.Settings.GetValue <bool>(SettingsManager.IsMainWindowVisible)); ShowRecapWindow = SettingsManager.Settings.GetValue <bool>(SettingsManager.IsRecapWindowVisible, false); #if DEBUG Debug.Log("AGM : Action Group Manager has started."); #endif }
void Start() { _manager = this; UiList = new Dictionary<string, UIObject>(); LightweightUINew light = new LightweightUINew(); light.Initialize(); UiList.Add("Light", light); View viewMan = new View(); viewMan.Initialize(); UiList.Add("Main", viewMan); ShortcutNew shortcut = new ShortcutNew(); shortcut.Initialize(viewMan); UiList.Add("Icon", shortcut); viewMan.SetVisible(SettingsManager.Settings.GetValue<bool>(SettingsManager.IsMainWindowVisible)); ShowRecapWindow = SettingsManager.Settings.GetValue<bool>(SettingsManager.IsRecapWindowVisible, false); #if DEBUG Debug.Log("AGM : Action Group Manager has started."); #endif }