Core/Common/ResourcesPath.cs
@@ -54,7 +54,7 @@ StreamingAssetPath = Application.streamingAssetsPath + "/android/"; #elif UNITY_IOS StreamingAssetPath = Application.streamingAssetsPath + "/ios/"; #elif UNITY_EDITOR #else StreamingAssetPath = Application.streamingAssetsPath + "/standalone/"; #endif Core/GameEngine/Login/Launch.cs
@@ -2,10 +2,9 @@ using System.Collections; using Snxxz.UI; using System; using System.Collections.Generic; using System.IO; using System.Diagnostics; public class Launch : MonoBehaviour { @@ -59,6 +58,13 @@ #if !UNITY_EDITOR tasks.Enqueue(assetCopyTask); #endif #endif #if UNITY_STANDALONE #if !UNITY_EDITOR tasks.Enqueue(assetCopyTask); #endif tasks.Enqueue(getVersionInfoTask); #endif tasks.Enqueue(checkAssetValidTask); @@ -127,7 +133,7 @@ if (launchComplete) { Debug.LogFormat("启动耗时:{0}", timer); UnityEngine.Debug.LogFormat("启动耗时:{0}", timer); progressInfo = new ProgressInfo(m_CurrentStage, 1, 1f, 1f); this.enabled = false; StageLoad.Instance.PushSceneLoadCommand(new StageLoad.StageLoadCommand() @@ -203,7 +209,59 @@ { duration = Mathf.Max(0.1f, expectTime); #if UNITY_ANDROID && !UNITY_EDITOR if (Application.isEditor) { EditorCopyAsset(); } else { AndroidCopyAsset(); IosCopyAsset(); StandaloneCopyAsset(); } if (!firstLaunch) { done = true; } } public override void End() { if (!AssetSource.builtInFromEditor) { AssetBundleUtility.Instance.InitBuiltInAsset(); } ConfigInitiator.SyncInit(); WindowCenter.Instance.DestoryWinsByStage(WindowCenter.WindowStage.Launch); AssetBundleUtility.Instance.UnloadAssetBundle("builtin/prefabs", true, false); WindowCenter.Instance.OpenFromLocal<LaunchWin>(); } public override void Update() { if (done) { return; } if (timer > duration) { done = true; } else { done = false; progress = timer / duration; } timer += Time.deltaTime; } [Conditional("UNITY_ANDROID")] private void AndroidCopyAsset() { if (!SDKUtility.builtinAssetCopyFinished) { firstLaunch=true; @@ -231,9 +289,11 @@ AssetDeCompressTask.Decompress(ResourcesPath.Instance.ExternalStorePath); LocalSave.SetString("BuiltInAssetCopyCompleted_Android", VersionConfig.Get().version); } #endif } #if UNITY_IOS && !UNITY_EDITOR [Conditional("UNITY_IOS")] private void IosCopyAsset() { if (!VersionUtility.Instance.InIosAuditTime()) { if (!SDKUtility.builtinAssetCopyFinished) @@ -279,61 +339,76 @@ File.Copy(fromPath, toPath, true); } LocalSave.SetString("BuiltInAssetCopyCompleted_IOS", VersionConfig.Get().version); LocalSave.SetString("BuiltInAssetCopyCompleted_IOSorStandalone", VersionConfig.Get().version); } } #endif #if UNITY_EDITOR } [Conditional("UNITY_STANDALONE")] private void StandaloneCopyAsset() { if (!SDKUtility.builtinAssetCopyFinished) { firstLaunch = true; var targetDirectory = ResourcesPath.Instance.ExternalStorePath; if (!Directory.Exists(targetDirectory)) { Directory.CreateDirectory(targetDirectory); } var fileNames = new List<string>(); var files = new List<FileInfo>(); FileExtersion.GetAllDirectoryFileInfos(StringUtility.Contact(ResourcesPath.Instance.StreamingAssetPath, "builtin"), files); foreach (var file in files) { var name = Path.GetFileName(file.FullName); fileNames.Add(StringUtility.Contact("builtin", Path.DirectorySeparatorChar, name)); } fileNames.Add("builtin_assetbundle"); fileNames.Add("builtin_assetbundle.manifest"); var configFiles = new List<FileInfo>(); FileExtersion.GetAllDirectoryFileInfos(StringUtility.Contact(ResourcesPath.Instance.StreamingAssetPath, "config"), configFiles); foreach (var file in configFiles) { var name = Path.GetFileName(file.FullName); fileNames.Add(StringUtility.Contact("config", Path.DirectorySeparatorChar, name)); } foreach (var item in fileNames) { var fromPath = StringUtility.Contact(ResourcesPath.Instance.StreamingAssetPath, item); var toPath = StringUtility.Contact(targetDirectory, item); var destDirectoryName = Path.GetDirectoryName(toPath); if (!Directory.Exists(destDirectoryName)) { Directory.CreateDirectory(destDirectoryName); } File.Copy(fromPath, toPath, true); } LocalSave.SetString("BuiltInAssetCopyCompleted_IOSorStandalone", VersionConfig.Get().version); } } [Conditional("UNITY_EDITOR")] private void EditorCopyAsset() { if (!AssetSource.allFromEditor) { FileExtersion.DirectoryCopy(ResourcesPath.CONFIG_FODLER, ResourcesPath.Instance.StreamingAssetPath + "config"); FileExtersion.DirectoryCopy(ResourcesPath.ResourcesOutPath + "BuiltIn", ResourcesPath.Instance.StreamingAssetPath + "builtin"); } #endif if (!firstLaunch) { done = true; } } public override void End() { if (!AssetSource.builtInFromEditor) { AssetBundleUtility.Instance.InitBuiltInAsset(); } ConfigInitiator.SyncInit(); WindowCenter.Instance.DestoryWinsByStage(WindowCenter.WindowStage.Launch); AssetBundleUtility.Instance.UnloadAssetBundle("builtin/prefabs", true, false); WindowCenter.Instance.OpenFromLocal<LaunchWin>(); } public override void Update() { if (done) { return; } if (timer > duration) { done = true; } else { done = false; progress = timer / duration; } timer += Time.deltaTime; } } public class InitSettingTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("InitSettingTask_ExpectTime", 1f); } protected set { LocalSave.SetFloat("InitSettingTask_ExpectTime", value); } } @@ -385,8 +460,7 @@ public class SDKInitedTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("SDKInitedTask_ExpectTime", 1f); } protected set { LocalSave.SetFloat("SDKInitedTask_ExpectTime", value); } } @@ -439,8 +513,7 @@ int totalCount = -1; List<FileInfo> copyTasks = new List<FileInfo>(); public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("AssetCopyTask_ExpectTime", 70f); } protected set { LocalSave.SetFloat("AssetCopyTask_ExpectTime", value); } } @@ -450,7 +523,51 @@ m_CurrentStage = LaunchStage.AssetCopy; duration = Mathf.Max(0.5f, expectTime); outTime = 50f; #if UNITY_ANDROID && !UNITY_EDITOR if (Application.isEditor) { done = true; } else { AndroidCopyAsset(); IOSorStandaloneCopyAsset(); } } public override void End() { expectTime = timer; DebugEx.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer); if (!Application.isEditor) { AndroidProcessCopyComplete(); IOSorStandaloneProcessCopyComplete(); } } public override void Update() { if (done) { return; } timer += Time.deltaTime; if (!Application.isEditor) { AndroidWaitCopyAssetComplete(); IOSorStandaloneWaitCopyAssetComplete(); } ExceptionReport(); } [Conditional("UNITY_ANDROID")] private void AndroidCopyAsset() { switch (VersionConfig.Get().assetAccess) { case InstalledAsset.FullAsset: @@ -471,9 +588,11 @@ done = true; break; } #endif } #if UNITY_IOS && !UNITY_EDITOR [Conditional("UNITY_IOS"), Conditional("UNITY_STANDALONE")] private void IOSorStandaloneCopyAsset() { if (VersionUtility.Instance.versionInfo != null && VersionUtility.Instance.versionInfo.downAsset == 1) { switch (VersionConfig.Get().assetAccess) @@ -519,32 +638,11 @@ { done = true; } #endif #if UNITY_EDITOR done = true; #endif } public override void End() [Conditional("UNITY_ANDROID")] private void AndroidWaitCopyAssetComplete() { expectTime = timer; DebugEx.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer); #if UNITY_IOS && !UNITY_EDITOR LocalSave.SetString("AssetCopyCompleted_IOS", VersionConfig.Get().version); #endif } public override void Update() { if (done) { return; } timer += Time.deltaTime; #if UNITY_ANDROID && !UNITY_EDITOR if (!SDKUtility.Instance.AssetCopyFinished) { done = false; @@ -554,9 +652,11 @@ { done = true; } #endif } #if UNITY_IOS && !UNITY_EDITOR [Conditional("UNITY_IOS"), Conditional("UNITY_STANDALONE")] private void IOSorStandaloneWaitCopyAssetComplete() { if (totalCount > 0) { if (completedCount < totalCount) @@ -587,15 +687,24 @@ done = true; } #endif ExceptionReport(); } [Conditional("UNITY_ANDROID")] private void AndroidProcessCopyComplete() { } [Conditional("UNITY_IOS"), Conditional("UNITY_STANDALONE")] private void IOSorStandaloneProcessCopyComplete() { LocalSave.SetString("AssetCopyCompleted_IOSorStandalone", VersionConfig.Get().version); } } public class AssetDecompressTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("AssetDecompressTask_ExpectTime", 5f); } protected set { LocalSave.SetFloat("AssetDecompressTask_ExpectTime", value); } } @@ -648,8 +757,7 @@ public class GetVersionInfoTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("GetVersionInfoTask_ExpectTime", 1f); } protected set { LocalSave.SetFloat("GetVersionInfoTask_ExpectTime", value); } } @@ -659,8 +767,9 @@ m_CurrentStage = LaunchStage.ClientVersion; duration = Mathf.Max(0.5f, expectTime); #if UNITY_ANDROID if (InGameDownTestUtility.enable || !Application.isEditor) if (Application.isEditor) { if (InGameDownTestUtility.enable) { VersionUtility.Instance.RequestVersionCheck(); done = false; @@ -670,9 +779,9 @@ { done = true; } #endif #if UNITY_IOS } else { if (!VersionUtility.Instance.InIosAuditTime()) { VersionUtility.Instance.RequestVersionCheck(); @@ -683,7 +792,8 @@ { done = true; } #endif } } public override void End() @@ -716,8 +826,7 @@ public class CheckAssetValidTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("CheckAssetValidTask_ExpectTime", 3f); } protected set { LocalSave.SetFloat("CheckAssetValidTask_ExpectTime", value); } } @@ -774,8 +883,7 @@ public class DownLoadAssetTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("DownLoadAssetTask_ExpectTime", 3f); } protected set { LocalSave.SetFloat("DownLoadAssetTask_ExpectTime", value); } } @@ -840,8 +948,7 @@ public class AssetBundleInitTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("AssetBundleInitTask_ExpectTime", 1f); } protected set { LocalSave.SetFloat("AssetBundleInitTask_ExpectTime", value); } } @@ -894,8 +1001,7 @@ public class ConfigInitTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("ConfigInitTask_ExpectTime", 10f); } protected set { LocalSave.SetFloat("ConfigInitTask_ExpectTime", value); } } @@ -944,8 +1050,7 @@ public class LaunchFadeOutTask : LaunchTask { public override float expectTime { public override float expectTime { get { return LocalSave.GetFloat("LaunchFadeOutTask_ExpectTime", 1f); } protected set { LocalSave.SetFloat("LaunchFadeOutTask_ExpectTime", value); } } Core/GameEngine/SnxxzGame.cs
@@ -180,13 +180,13 @@ private void OnApplicationPause(bool pause) { if (!Application.isEditor) { if (!pause) { #if !UNITY_EDITOR && UNITY_ANDROID ResolutionUtility.AdjustResolution(); #endif } } } private void OnApplicationFocus(bool focus) Core/ResModule/AssetBundle/AssetBundleUtility.cs
@@ -23,13 +23,13 @@ var assetBundle = AssetBundle.LoadFromFile(path); if (assetBundle == null) { DebugEx.LogError("AssetBundleManifest的包文件为空或者加载出错."); DebugEx.LogErrorFormat("AssetBundleManifest的包文件为空或者加载出错. Path:{0}", path); } var manifest = assetBundle.LoadAsset<AssetBundleManifest>(ResourcesPath.AssetDependentFileAssetName); if (manifest == null) { DebugEx.LogError("AssetBundleManifest文件为空或者加载出错."); DebugEx.LogErrorFormat("AssetBundleManifest的包文件为空或者加载出错. Path:{0}", path); } var bundles = manifest.GetAllAssetBundles(); @@ -55,13 +55,13 @@ var assetBundle = AssetBundle.LoadFromFile(path); if (assetBundle == null) { DebugEx.LogError("AssetBundleManifest的包文件为空或者加载出错."); DebugEx.LogErrorFormat("AssetBundleManifest的包文件为空或者加载出错. Path:{0}", path); } var manifest = assetBundle.LoadAsset<AssetBundleManifest>(ResourcesPath.AssetDependentFileAssetName); if (manifest == null) { DebugEx.LogError("AssetBundleManifest文件为空或者加载出错."); DebugEx.LogErrorFormat("AssetBundleManifest的包文件为空或者加载出错. Path:{0}", path); } for (int i = m_AssetBundleInfoList.Count - 1; i >= 0; i--) @@ -122,14 +122,14 @@ if (_assetBundle == null) { DebugEx.LogError("AssetBundleManifest的包文件为空或者加载出错."); DebugEx.LogErrorFormat("AssetBundleManifest的包文件为空或者加载出错. Path:{0}", path); yield break; } AssetBundleManifest _assetBundleManifest = _assetBundle.LoadAsset<AssetBundleManifest>(ResourcesPath.AssetDependentFileAssetName); if (_assetBundleManifest == null) { DebugEx.LogError("AssetBundleManifest文件为空或者加载出错."); DebugEx.LogErrorFormat("AssetBundleManifest的包文件为空或者加载出错. Path:{0}", path); yield break; } Core/SDK/SDKUtility.cs
@@ -153,8 +153,8 @@ builtinAssetCopyFinished = VersionConfig.Get().version == builtinAssetsCopyFinishVersion; } #endif #if UNITY_IOS var builtinAssetsCopyFinishVersion = LocalSave.GetString("BuiltInAssetCopyCompleted_IOS"); #if UNITY_IOS || UNITY_STANDALONE var builtinAssetsCopyFinishVersion = LocalSave.GetString("BuiltInAssetCopyCompleted_IOSorStandalone"); if (string.IsNullOrEmpty(builtinAssetsCopyFinishVersion)) { builtinAssetCopyFinished = false; @@ -164,7 +164,7 @@ builtinAssetCopyFinished = VersionConfig.Get().version == builtinAssetsCopyFinishVersion; } var assetsCopyFinishVersion = LocalSave.GetString("AssetCopyCompleted_IOS"); var assetsCopyFinishVersion = LocalSave.GetString("AssetCopyCompleted_IOSorStandalone"); if (string.IsNullOrEmpty(assetsCopyFinishVersion)) { AssetCopyFinished = false; @@ -175,9 +175,7 @@ } #elif UNITY_ANDROID SyncClientPackageID(); #endif InitFinished = false; System/EquipTrain/EquipTrainCandidateBehaviour.cs
@@ -68,7 +68,7 @@ m_ItemCell.button.enabled = false; m_Description1.text = item.config.ItemName; m_Description1.color = UIHelper.GetUIColor(item.config.ItemColor, true); m_Description2.text = string.Format("洗练等级:{0}级", this.candidate.trainLevel.Fetch()); m_Description2.text = string.Format("洗炼等级:{0}级", this.candidate.trainLevel.Fetch()); m_Description2.color = UIHelper.GetUIColor(TextColType.NavyBrown, true); var starLevel = this.candidate.starLevel.Fetch(); @@ -90,7 +90,7 @@ var trainLevel = this.candidate.trainLevel.Fetch(); if (!string.IsNullOrEmpty(this.candidate.equipGuid.value)) { m_Description2.text = string.Format("洗练等级:{0}级", trainLevel); m_Description2.text = string.Format("洗炼等级:{0}级", trainLevel); m_Description2.color = UIHelper.GetUIColor(TextColType.NavyBrown, true); } } System/EquipTrain/EquipTrainWin.cs
@@ -170,7 +170,7 @@ if (force || model.equipTrainLevel.dirty) { var trainLevel = model.equipTrainLevel.Fetch(); m_TrainLevel.text = string.Format("{0}级洗练", trainLevel); m_TrainLevel.text = string.Format("{0}级洗炼", trainLevel); } if (force || model.equipTrainMaxLevel.dirty) @@ -180,16 +180,16 @@ if (maxTrain < 0) { m_MaxTrainLevel.text = "穿戴装备可洗练"; m_MaxTrainLevel.text = "穿戴装备可洗炼"; } else if (maxTrain > 0) { var star = starModel.GetEquipStarLevel(equipPosition); m_MaxTrainLevel.text = string.Format("{0}星装备最高可洗练至{1}级", star, maxTrain); m_MaxTrainLevel.text = string.Format("{0}星装备最高可洗炼至{1}级", star, maxTrain); } else { m_MaxTrainLevel.text = "提升装备星级可洗练"; m_MaxTrainLevel.text = "提升装备星级可洗炼"; } } System/ItemTip/TipItemBaseInfoWidget.cs
@@ -16,6 +16,7 @@ [SerializeField] ItemBehaviour m_Item; [SerializeField] Text m_Type; [SerializeField] RectTransform m_ConditionContainer; [SerializeField] Text m_Condition; [SerializeField] RectTransform m_SurplusTimeContainer; @@ -40,26 +41,6 @@ m_Item.SetItem(baseInfo.itemId, 1); m_Type.text = itemConfig.ItemTypeName; if (baseInfo.moneyLimit > 0) { var myMoney = UIHelper.GetMoneyCnt(1); m_Condition.text = Language.Get("OpenBoxCostMoney", baseInfo.moneyLimit); m_Condition.color = UIHelper.GetUIColor(myMoney < (ulong)baseInfo.moneyLimit ? TextColType.Red : TextColType.Green); } else if (baseInfo.realmLimit > 0) { var realmConfig = RealmConfig.Get(baseInfo.realmLimit); m_Condition.text = StringUtility.Contact(Language.Get("RealmLimit1"), " ", realmConfig.Name); var realmLevel = PlayerDatas.Instance.baseData.realmLevel; m_Condition.color = UIHelper.GetUIColor(realmLevel < itemConfig.UseLV ? TextColType.Red : TextColType.Green); } else { m_Condition.text = StringUtility.Contact(Language.Get("KnapS110"), " ", baseInfo.levelLimit); var playerLevel = PlayerDatas.Instance.baseData.LV; m_Condition.color = UIHelper.GetUIColor(playerLevel < itemConfig.UseLV ? TextColType.Red : TextColType.Green); } if (baseInfo.isPreview) { @@ -97,6 +78,34 @@ } } if (!baseInfo.isAuction) { m_ConditionContainer.gameObject.SetActive(true); if (baseInfo.moneyLimit > 0) { var myMoney = UIHelper.GetMoneyCnt(1); m_Condition.text = Language.Get("OpenBoxCostMoney", baseInfo.moneyLimit); m_Condition.color = UIHelper.GetUIColor(myMoney < (ulong)baseInfo.moneyLimit ? TextColType.Red : TextColType.Green); } else if (baseInfo.realmLimit > 0) { var realmConfig = RealmConfig.Get(baseInfo.realmLimit); m_Condition.text = StringUtility.Contact(Language.Get("RealmLimit1"), " ", realmConfig.Name); var realmLevel = PlayerDatas.Instance.baseData.realmLevel; m_Condition.color = UIHelper.GetUIColor(realmLevel < itemConfig.UseLV ? TextColType.Red : TextColType.Green); } else { m_Condition.text = StringUtility.Contact(Language.Get("KnapS110"), " ", baseInfo.levelLimit); var playerLevel = PlayerDatas.Instance.baseData.LV; m_Condition.color = UIHelper.GetUIColor(playerLevel < itemConfig.UseLV ? TextColType.Red : TextColType.Green); } } else { m_ConditionContainer.gameObject.SetActive(false); } } } System/MainInterfacePanel/MainRedDot.cs
@@ -56,7 +56,7 @@ public Redpoint redPointDepotFunc = new Redpoint(RedPoint_MainPackKey, RedPoint_DepotFuncKey); #endregion #region 洗练红点 #region 洗炼红点 public const int RedPoint_WashFuncKey = 10605; public Redpoint redPointWashFunc = new Redpoint(RedPoint_key1,RedPoint_WashFuncKey); #endregion System/RoleParticulars/RoleParticularsWin.cs
@@ -74,7 +74,8 @@ private void WindowAfterCloseEvent(Window win) { if (win is ViewHorseDetailWin || win is ViewPetDetailWin) if (win is ViewHorseDetailWin || win is ViewPetDetailWin || win is OtherPlayerEquipWin) { OnShowRoleEquip(); } System/RolePromote/RolePromoteModel.cs
@@ -355,7 +355,7 @@ } #endregion #region 洗练 #region 洗炼 #endregion System/Voice/OpusNative.cs
@@ -4,14 +4,14 @@ public static class OpusNative { #if UNITY_ANDROID || UNITY_EDITOR #if UNITY_ANDROID || UNITY_EDITOR || UNITY_STANDALONE [DllImport("opus")] #elif UNITY_IOS [DllImport("__Internal")] #endif public static extern int native_opus_encode(short[] pcm, int len, byte[] opus); #if UNITY_ANDROID || UNITY_EDITOR #if UNITY_ANDROID || UNITY_EDITOR || UNITY_STANDALONE [DllImport("opus")] #elif UNITY_IOS [DllImport("__Internal")] System/WindowBase/OneLevelWin.cs
@@ -39,7 +39,12 @@ var infos = WindowConfig.GetWindowFunctionInfos(name); foreach (var info in infos) { m_Group.AddFunction("FunctionButton_Pattern_1", info.order, info.functionId, Language.Get(info.titleKey), info.redPointId); var title = Language.Get(info.titleKey); if (title.Length == 2) { title = title.Insert(1, " "); } m_Group.AddFunction("FunctionButton_Pattern_1", info.order, info.functionId, title, info.redPointId); } m_TitleIcon.SetSprite(WindowConfig.GetTitleIconKey(name)); System/WindowJump/WindowJumpMgr.cs
@@ -1401,7 +1401,7 @@ StrengthFunc4 = 15,//洗炼 EquipLowSuit = 241, //普通套装界面 StrengthFunc5 = 16, EquipWashType2 = 239, //装备洗练界面 EquipWashType2 = 239, //装备洗炼界面 ComposeFunc1 = 17, ComposeFunc2 = 18, ComposeFunc3 = 19, Utility/DeviceUtility.cs
@@ -77,10 +77,8 @@ { #if UNITY_IOS return UnityEngine.iOS.Device.advertisingIdentifier; # elif UNITY_ANDROID return SystemInfo.deviceUniqueIdentifier; #else return ""; return SystemInfo.deviceUniqueIdentifier; #endif } @@ -88,10 +86,8 @@ { #if UNITY_IOS return UnityEngine.iOS.Device.systemVersion; # elif UNITY_ANDROID return SystemInfo.operatingSystem; #else return ""; return SystemInfo.operatingSystem; #endif } @@ -99,10 +95,8 @@ { #if UNITY_IOS return UnityEngine.iOS.Device.generation.ToString(); #elif UNITY_ANDROID return SystemInfo.deviceName; #else return ""; return SystemInfo.deviceName; #endif } @@ -110,10 +104,8 @@ { #if UNITY_IOS return UnityEngine.iOS.Device.generation.ToString(); #elif UNITY_ANDROID return SystemInfo.deviceModel; #else return ""; return SystemInfo.deviceModel; #endif } Utility/EnumHelper.cs
@@ -1095,7 +1095,7 @@ Stone,//宝石 Suit,//套装 Wing,//翅膀 Wash,//洗练 Wash,//洗炼 Pet,//灵宠 Horse,//坐骑 Prestige,//境界 @@ -1375,7 +1375,7 @@ strength, //强化 inlay, //镶嵌 train,//洗练 train,//洗炼 star,//升星 } Utility/ExceptionCatcher.cs
Utility/ResolutionUtility.cs
@@ -1,12 +1,14 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Diagnostics; public class ResolutionUtility { public static readonly Vector2 originalResolution = new Vector2(Screen.width, Screen.height); public static Vector2 currentResolution = new Vector2(Screen.width, Screen.height); [Conditional("UNITY_ANDROID")] public static void AdjustResolution() { Screen.SetResolution(Mathf.RoundToInt(currentResolution.x), Mathf.RoundToInt(currentResolution.y), true);