| | |
| | | public string clientPackageFlag { get { return m_ClientPackageFlag; } } |
| | | |
| | | [SerializeField] int m_Branch = 0; |
| | | public int branch { get { return m_Branch; } } |
| | | public int branch {
|
| | | get {
|
| | | if (DebugUtility.Instance.debugAccount && DebugUtility.Instance.debugBranch >= 0)
|
| | | {
|
| | | return DebugUtility.Instance.debugBranch;
|
| | | }
|
| | | else
|
| | | {
|
| | | return m_Branch;
|
| | | }
|
| | | }
|
| | | } |
| | | |
| | | [SerializeField] InstalledAsset m_AssetAccess = InstalledAsset.IngoreDownLoad;
|
| | | public InstalledAsset assetAccess { get { return m_AssetAccess; } set { m_AssetAccess = value; } } |
| | |
| | | }
|
| | | } |
| | | |
| | | |
| | | public int debugBranch = -1; |
| | | |
| | | public void Init()
|
| | | {
|
| | | if (VersionConfig.Get().debugVersion)
|
| | |
| | | {
|
| | | var parentDirectory = Directory.GetParent(Application.persistentDataPath);
|
| | | debugAccount = File.Exists(parentDirectory + "/Debug");
|
| | |
|
| | | if (debugAccount)
|
| | | {
|
| | | var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
|
| | | debugBranch = json.branch;
|
| | | }
|
| | | }
|
| | | } |
| | | |
| | |
| | | struct DebugAuthority
|
| | | {
|
| | | public int dbg;
|
| | | }
|
| | |
|
| | | public class DebugBranch
|
| | | {
|
| | | public int branch = -1;
|
| | | } |
| | | |
| | | } |
| | |
| | |
|
| | | private void OnEnable()
|
| | | {
|
| | | m_Version.text = string.Format("版本:{0},序号:{1},分支:{2},客户端标识:{3}",
|
| | | VersionConfig.Get().version, VersionConfig.Get().buildIndex, VersionConfig.Get().branch, VersionConfig.Get().clientPackageFlag);
|
| | | if (DebugUtility.Instance.debugAccount && DebugUtility.Instance.debugBranch >= 0)
|
| | | {
|
| | | m_Version.text = string.Format("版本:{0},序号:{1},Debug分支:{2},客户端标识:{3}",
|
| | | VersionConfig.Get().version, VersionConfig.Get().buildIndex, VersionConfig.Get().branch, VersionConfig.Get().clientPackageFlag);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Version.text = string.Format("版本:{0},序号:{1},分支:{2},客户端标识:{3}",
|
| | | VersionConfig.Get().version, VersionConfig.Get().buildIndex, VersionConfig.Get().branch, VersionConfig.Get().clientPackageFlag);
|
| | | }
|
| | | } |
| | | |
| | | } |