diff --git a/Assets/00.StaryEvo/Editor/Build/BuildReport.cs b/Assets/00.StaryEvo/Editor/Build/BuildReport.cs index 6fdf6c9..3f12f4d 100644 --- a/Assets/00.StaryEvo/Editor/Build/BuildReport.cs +++ b/Assets/00.StaryEvo/Editor/Build/BuildReport.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using Stary.Evo.Editor; using UnityEditor; using UnityEditor.Build; @@ -14,8 +15,9 @@ namespace Stary.Evo public void OnPreprocessBuild(UnityEditor.Build.Reporting.BuildReport report) { + string platform = EditorPrefs.GetString("ChangePlayerSchema"); // build前 - if (ChangePlayerSchema.PLayerMode == PLayerMode.EDITOR_SIMULATEMODE) + if (Enum.Parse(platform) == PLayerMode.EDITOR_SIMULATEMODE) { int id = EditorUtility.DisplayDialogComplex("提示", $"当前为[{PLayerMode.EDITOR_SIMULATEMODE}]模式,请选择切换得热更模式!", diff --git a/Assets/00.StaryEvo/package.json b/Assets/00.StaryEvo/package.json index 06506f8..2c0cb9b 100644 --- a/Assets/00.StaryEvo/package.json +++ b/Assets/00.StaryEvo/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.main", - "version": "1.3.16", + "version": "1.3.17", "displayName": "00.StaryEvo", "description": "This is an Framework package(后台服务器版本,端口9527)", "unity": "2021.3",