From cf433f864cc7c9a3a3052a356240eeaf7c3a685a Mon Sep 17 00:00:00 2001 From: yangjing Date: Mon, 10 Oct 2022 16:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9login=E6=97=B6=E6=9C=BA?= =?UTF-8?q?=EF=BC=8C=E4=BF=9D=E6=8C=81IPShow=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/GameManager.cs | 2 ++ Assets/Scripts/Logic/InitLogic.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index e807ec5b..768aadaf 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -59,9 +59,11 @@ public class GameManager : D_MonoSingleton private void DataOverride() { bool tIsMMO = PlayerData.Instance.IsMMOUser; + bool tIsIP = PlayerData.Instance.IsIPShow; PlayerData.Load(); SettingData.Load(); PlayerData.Instance.IsMMOUser = tIsMMO; + PlayerData.Instance.IsIPShow = tIsIP; } private void UpdateDiamond(int pDiamond) diff --git a/Assets/Scripts/Logic/InitLogic.cs b/Assets/Scripts/Logic/InitLogic.cs index 269eb977..c318bb26 100644 --- a/Assets/Scripts/Logic/InitLogic.cs +++ b/Assets/Scripts/Logic/InitLogic.cs @@ -28,7 +28,7 @@ public class InitLogic : MonoBehaviour IAPTool.Instance.AddProducts(tProductDic); } #endif - PlayerData.Instance.Login(); + #if UNITY_EDITOR MMOModule.Instance.EnableMMO(GameConfig.Instance.IsDebug); @@ -49,6 +49,7 @@ public class InitLogic : MonoBehaviour private void SDKDone() { + PlayerData.Instance.Login(); MMOModule.Instance.Init(GameManager.Instance.LoadGame); } } \ No newline at end of file