From 0e978e0d70e0e3e9c6b15bfdc296fdc5630fbc18 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 20 八月 2018 09:49:34 +0800
Subject: [PATCH] Fixed #2325 2325 新手战斗石头人引导优化 去掉错误提交
---
System/ClientVersion/VersionConfig.cs | 126 +++++++++++++++++++++---------------------
1 files changed, 63 insertions(+), 63 deletions(-)
diff --git a/System/ClientVersion/VersionConfig.cs b/System/ClientVersion/VersionConfig.cs
index 8d67e18..b8875c7 100644
--- a/System/ClientVersion/VersionConfig.cs
+++ b/System/ClientVersion/VersionConfig.cs
@@ -1,30 +1,30 @@
-锘縰sing System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using System.IO;
-
-#if UNITY_EDITOR
-using UnityEditor;
-#endif
-
-[CreateAssetMenu(menuName = "Config/VersionConfig")]
-public class VersionConfig : ScriptableObject
-{
- public const string VERSION_ALTERNATIVE = "1.0.15";
+锘縰sing System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using System.IO;
- [SerializeField] public string m_AppId = string.Empty;
+#if UNITY_EDITOR
+using UnityEditor;
+#endif
+
+[CreateAssetMenu(menuName = "Config/VersionConfig")]
+public class VersionConfig : ScriptableObject
+{
+ public const string VERSION_ALTERNATIVE = "0.0.0";
+
+ [SerializeField] public string m_AppId = string.Empty;
public string appId { get { return m_AppId; } }
- [SerializeField] VersionAuthority m_VersionAuthority;
- public VersionAuthority versionAuthority { get { return m_VersionAuthority; } }
-
- [SerializeField] public string m_Version;
+ [SerializeField] VersionAuthority m_VersionAuthority;
+ public VersionAuthority versionAuthority { get { return m_VersionAuthority; } }
+
+ [SerializeField] public string m_Version;
public string version { get { return VersionCompare(m_Version, VERSION_ALTERNATIVE); } }
[SerializeField] string m_ClientPackageFlag;
- public string clientPackageFlag { get { return m_ClientPackageFlag; } }
-
- [SerializeField] int m_Branch = 0;
+ public string clientPackageFlag { get { return m_ClientPackageFlag; } }
+
+ [SerializeField] int m_Branch = 0;
public int branch {
get {
if (DebugUtility.Instance.debugAccount && DebugUtility.Instance.debugBranch >= 0)
@@ -36,59 +36,59 @@
return m_Branch;
}
}
- }
-
+ }
+
[SerializeField] InstalledAsset m_AssetAccess = InstalledAsset.IngoreDownLoad;
- public InstalledAsset assetAccess { get { return m_AssetAccess; } set { m_AssetAccess = value; } }
-
+ public InstalledAsset assetAccess { get { return m_AssetAccess; } set { m_AssetAccess = value; } }
+
[SerializeField] bool m_PartAssetPackage = false;
- public bool partAssetPackage { get { return m_PartAssetPackage; } set { m_PartAssetPackage = value; } }
-
- [SerializeField] string m_ProductName = string.Empty;
- public string productName { get { return m_ProductName; } }
-
- [SerializeField] string m_BundleIdentifier = string.Empty;
- public string bundleIdentifier { get { return m_BundleIdentifier; } }
-
- [SerializeField] string m_KeystoreFileName;
+ public bool partAssetPackage { get { return m_PartAssetPackage; } set { m_PartAssetPackage = value; } }
+
+ [SerializeField] string m_ProductName = string.Empty;
+ public string productName { get { return m_ProductName; } }
+
+ [SerializeField] string m_BundleIdentifier = string.Empty;
+ public string bundleIdentifier { get { return m_BundleIdentifier; } }
+
+ [SerializeField] string m_KeystoreFileName;
public string keystoreFileName { get { return m_KeystoreFileName; } }
- [SerializeField] string m_KeystorePassword;
- public string keystorePassword { get { return m_KeystorePassword; } }
-
- [SerializeField] string m_KeystoreAlias;
+ [SerializeField] string m_KeystorePassword;
+ public string keystorePassword { get { return m_KeystorePassword; } }
+
+ [SerializeField] string m_KeystoreAlias;
public string keystoreAlias { get { return m_KeystoreAlias; } }
- [SerializeField] string m_KeystoreAliasPassword;
- public string keystoreAliasPassword { get { return m_KeystoreAliasPassword; } }
-
+ [SerializeField] string m_KeystoreAliasPassword;
+ public string keystoreAliasPassword { get { return m_KeystoreAliasPassword; } }
+
[SerializeField] string m_AppleDeveloperTeamID;
public string appleDeveloperTeamID { get { return m_AppleDeveloperTeamID; } }
- [SerializeField] bool m_DebugVersion = false;
+ [SerializeField] bool m_DebugVersion = false;
public bool debugVersion {
get { return m_DebugVersion; }
set { m_DebugVersion = value; }
}
- [SerializeField] bool m_IsBanShu = false;
+ [SerializeField] bool m_IsBanShu = false;
public bool isBanShu {
get { return m_IsBanShu; }
set { m_IsBanShu = value; }
- }
-
- [SerializeField] string m_BuildTime;
+ }
+
+ [SerializeField] string m_BuildTime;
public string buildTime {
get { return m_BuildTime; }
set { m_BuildTime = value; }
}
- [SerializeField] int m_BuildIndex;
+ [SerializeField] int m_BuildIndex;
public int buildIndex {
get { return m_BuildIndex; }
set { m_BuildIndex = value; }
- }
-
+ }
+
[SerializeField] Vector2 m_LogoPosition;
public Vector2 logoPosition { get { return m_LogoPosition; } }
@@ -114,8 +114,8 @@
m_LogoPosition = dataStrings[18].Vector3Parse();
}
-#if UNITY_EDITOR
- [ContextMenu("Apply")]
+#if UNITY_EDITOR
+ [ContextMenu("Apply")]
public void Apply()
{
var newVersionConfigPath = StringUtility.Contact("Assets/Resources/ScriptableObject/Config/VersionConfig", ".asset");
@@ -131,10 +131,10 @@
AssetDatabase.CreateAsset(newVersionConfig, newVersionConfigPath);
EditorUtility.SetDirty(newVersionConfig);
AssetDatabase.SaveAssets();
- }
-#endif
-
- static VersionConfig config = null;
+ }
+#endif
+
+ static VersionConfig config = null;
public static VersionConfig Get()
{
if (config == null)
@@ -143,8 +143,8 @@
}
return config;
- }
-
+ }
+
public static void Copy(VersionConfig _from, VersionConfig _to)
{
_to.m_VersionAuthority = _from.m_VersionAuthority;
@@ -165,14 +165,14 @@
_to.m_IsBanShu = _from.m_IsBanShu;
_to.m_ClientPackageFlag = _from.m_ClientPackageFlag;
_to.m_LogoPosition = _from.m_LogoPosition;
- }
-
+ }
+
/// <summary>
/// 姣旇緝涓や釜鐗堟湰锛岃繑鍥炴洿澶х殑閭d釜
/// </summary>
/// <param name="_lhs"></param>
/// <param name="_rhs"></param>
- /// <returns></returns>
+ /// <returns></returns>
static string VersionCompare(string _lhs, string _rhs)
{
var lhsStrings = _lhs.Split('.');
@@ -209,6 +209,6 @@
return version1 > version2 ? _lhs : _rhs;
}
- }
-
-}
+ }
+
+}
--
Gitblit v1.8.0