private void Awake() { _labelCenterBold = new GUIStyle { alignment = TextAnchor.MiddleCenter, fontStyle = FontStyle.Bold }; _buttonLeft = new GUIStyle(EditorStyles.miniButton) { alignment = TextAnchor.MiddleLeft, fixedHeight = 24 }; _numberFieldCenter = new GUIStyle(EditorStyles.numberField) { alignment = TextAnchor.MiddleCenter }; _settings = SettingsScriptableObject.GetOrCreateSettings(); string[] version = PlayerSettings.bundleVersion.Split('.'); if (version.Length != 3) { _major = 0; _minor = 1; _patch = 0; return; } _major = int.TryParse(version[0], out _major) ? _major : 0; _minor = int.TryParse(version[1], out _minor) ? _minor : 1; _patch = int.TryParse(version[2], out _patch) ? _patch : 0; }
private void Awake() { _labelCenterBold = new GUIStyle { alignment = TextAnchor.MiddleCenter, fontStyle = FontStyle.Bold }; _settings = SettingsScriptableObject.GetOrCreateSettings(); _sceneAssets = _settings.sceneAssets; }