|
@@ -1,9 +1,6 @@
|
|
|
using System;
|
|
|
-using System.Threading;
|
|
|
using CommandLine;
|
|
|
-using Sirenix.OdinInspector;
|
|
|
using UnityEngine;
|
|
|
-using YooAsset;
|
|
|
|
|
|
namespace ET
|
|
|
{
|
|
@@ -21,6 +18,16 @@ namespace ET
|
|
|
{
|
|
|
GameObject.Destroy(debugObj);
|
|
|
}
|
|
|
+ var globalConfig = Resources.Load<GlobalConfig>("GlobalConfig");
|
|
|
+ if (globalConfig.PlayMode != YooAsset.YooAssets.EPlayMode.EditorSimulateMode)
|
|
|
+ {
|
|
|
+ var window = UnityEditor.EditorWindow.GetWindow(typeof(UnityEditor.EditorWindow), true, "Game");
|
|
|
+ if(window != null)
|
|
|
+ {
|
|
|
+ window.ShowNotification(new GUIContent($"PlayMode is {globalConfig.PlayMode}"), 5);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
#endif
|
|
|
DontDestroyOnLoad(gameObject);
|
|
|
|
|
@@ -69,4 +76,4 @@ namespace ET
|
|
|
Game.Close();
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|