| System/ClientVersion/VersionUtility.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Tip/ExitGameWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Tip/ExitGameWin.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| UI/Common/UIRoot.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Utility/LanguageVerify.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/ClientVersion/VersionUtility.cs
@@ -168,6 +168,12 @@ step = Step.Completed; } const string maoerGameAppId = "498mrgame"; public bool IsMaoErGame() { return VersionConfig.Get().appId == maoerGameAppId; } public class VersionInfo { public int ForceCount; System/Tip/ExitGameWin.cs
New file @@ -0,0 +1,79 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, September 11, 2018 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class ExitGameWin : Window { [SerializeField] Button m_Exit; [SerializeField] Button m_Cancel; #region Built-in protected override void BindController() { } protected override void AddListeners() { m_Exit.AddListener(ExitGame); m_Cancel.AddListener(Cancel); } protected override void OnPreOpen() { } protected override void OnAfterOpen() { } protected override void OnPreClose() { } protected override void OnAfterClose() { } protected override void LateUpdate() { base.LateUpdate(); if (Input.GetKeyDown(KeyCode.Escape)) { ExitGame(); } } #endregion private void ExitGame() { #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #elif UNITY_ANDROID Application.Quit(); #endif } private void Cancel() { WindowCenter.Instance.Close<ExitGameWin>(); } } } System/Tip/ExitGameWin.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 85b6c85b944b3064dbe6a5174c914816 timeCreated: 1536647577 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: UI/Common/UIRoot.cs
@@ -60,6 +60,22 @@ gmCmd.CmdLen = 13; GameNetSystem.Instance.SendInfo(gmCmd); } if (StageManager.Instance.CurrentStage != null) { if (Input.GetKeyDown(KeyCode.Escape)) { #if UNITY_EDITOR WindowCenter.Instance.Open<ExitGameWin>(); #elif UNITY_ANDROID if (VersionUtility.Instance.IsMaoErGame()) { WindowCenter.Instance.Open<ExitGameWin>(); } #endif } } } [System.Serializable] Utility/LanguageVerify.cs
@@ -8,13 +8,12 @@ public class LanguageVerify : Singleton<LanguageVerify> { const string RequireVerifyAppid = "498mrgame"; const string Sercret = "c345a165b566d1c421afd8a748373d7f"; bool requireVerify { get { return VersionConfig.Get().appId.Equals(RequireVerifyAppid); return VersionUtility.Instance.IsMaoErGame(); } }