From f14798677c3ee21f7bbd4db61023b85a558b9a2b Mon Sep 17 00:00:00 2001 From: yangjing Date: Sat, 8 Oct 2022 10:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E4=B8=8B=E6=A0=B9?= =?UTF-8?q?=E6=8D=AEIsDebug=E5=BC=80=E5=90=AFMMO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Logic/InitLogic.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/Logic/InitLogic.cs b/Assets/Scripts/Logic/InitLogic.cs index fe4bdad6..269eb977 100644 --- a/Assets/Scripts/Logic/InitLogic.cs +++ b/Assets/Scripts/Logic/InitLogic.cs @@ -30,7 +30,11 @@ public class InitLogic : MonoBehaviour #endif PlayerData.Instance.Login(); +#if UNITY_EDITOR + MMOModule.Instance.EnableMMO(GameConfig.Instance.IsDebug); +#else MMOModule.Instance.EnableMMO(TKGSDKManager.Instance.IsIAPEnabled); +#endif TKGSDKManager.Instance.InitSDK(SDKDone);