修改login时机,保持IPShow值
This commit is contained in:
parent
7e2383dba1
commit
cf433f864c
|
@ -59,9 +59,11 @@ public class GameManager : D_MonoSingleton<GameManager>
|
||||||
private void DataOverride()
|
private void DataOverride()
|
||||||
{
|
{
|
||||||
bool tIsMMO = PlayerData.Instance.IsMMOUser;
|
bool tIsMMO = PlayerData.Instance.IsMMOUser;
|
||||||
|
bool tIsIP = PlayerData.Instance.IsIPShow;
|
||||||
PlayerData.Load();
|
PlayerData.Load();
|
||||||
SettingData.Load();
|
SettingData.Load();
|
||||||
PlayerData.Instance.IsMMOUser = tIsMMO;
|
PlayerData.Instance.IsMMOUser = tIsMMO;
|
||||||
|
PlayerData.Instance.IsIPShow = tIsIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateDiamond(int pDiamond)
|
private void UpdateDiamond(int pDiamond)
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class InitLogic : MonoBehaviour
|
||||||
IAPTool.Instance.AddProducts(tProductDic);
|
IAPTool.Instance.AddProducts(tProductDic);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
PlayerData.Instance.Login();
|
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
MMOModule.Instance.EnableMMO(GameConfig.Instance.IsDebug);
|
MMOModule.Instance.EnableMMO(GameConfig.Instance.IsDebug);
|
||||||
|
@ -49,6 +49,7 @@ public class InitLogic : MonoBehaviour
|
||||||
|
|
||||||
private void SDKDone()
|
private void SDKDone()
|
||||||
{
|
{
|
||||||
|
PlayerData.Instance.Login();
|
||||||
MMOModule.Instance.Init(GameManager.Instance.LoadGame);
|
MMOModule.Instance.Init(GameManager.Instance.LoadGame);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue