void Start() { Debug.Log("Start ran!"); if (!MyInfo().isEnabled) { Deinitialize(); return; } SetCameraRectHelper.Initialize(); if (!Directory.Exists(OverrideDirectory)) { try { Directory.CreateDirectory(OverrideDirectory); } catch (Exception ex) { Debug.LogException(ex); } } InitializeInGamePanels(); _availableSkins = SkinLoader.FindAllSkins(); if (!string.IsNullOrEmpty(ConfigManager.SelectedSkinPath) && ConfigManager.ApplySkinOnStartup) { foreach (var metadata in _availableSkins) { if (metadata.Path == ConfigManager.SelectedSkinPath) { _currentSkin = Skin.FromXmlFile(Path.Combine(metadata.Path, "skin.xml"), false); _needToApplyCurrentSkin = true; break; } } } CreateUI(); _debugRenderer = gameObject.AddComponent <DebugRenderer>(); }
void Start() { Debug.Log("Start ran!"); if (!MyInfo().isEnabled) { Deinitialize(); return; } SetCameraRectHelper.Initialize(); if (!Directory.Exists(OverrideDirectory)) { try { Directory.CreateDirectory(OverrideDirectory); } catch (Exception ex) { Debug.LogException(ex); } } InitializeInGamePanels(); _availableSkins = SkinLoader.FindAllSkins(); if (!string.IsNullOrEmpty(ConfigManager.SelectedSkinPath) && ConfigManager.ApplySkinOnStartup) { foreach (var metadata in _availableSkins) { if (metadata.Path == ConfigManager.SelectedSkinPath) { _currentSkin = Skin.FromXmlFile(Path.Combine(metadata.Path, "skin.xml"), false); _needToApplyCurrentSkin = true; break; } } } CreateUI(); _debugRenderer = gameObject.AddComponent<DebugRenderer>(); }