网赚开关

This commit is contained in:
yangjing 2022-09-28 19:41:06 +08:00
parent d6ec73488f
commit cdb2b128a1
2 changed files with 8 additions and 0 deletions

View File

@ -105,6 +105,12 @@ public partial class MMOModule : MonoBehaviour
}
}
public void EnableMMO(bool pEnable, bool pKeepLoading = false)
{
MMOConstConfig.Instance.IsEnabled = pEnable;
MMOConstConfig.Instance.KeepLoading = pEnable ? true : pKeepLoading;
}
public void Init(Action pDelInitOver)
{
if (!MMOConstConfig.Instance.IsEnabled)

View File

@ -30,6 +30,8 @@ public class InitLogic : MonoBehaviour
#endif
PlayerData.Instance.Login();
MMOModule.Instance.EnableMMO(TKGSDKManager.Instance.IsIAPEnabled);
TKGSDKManager.Instance.InitSDK(SDKDone);
TKGSDKManager.Instance.IsRemoveAds = PlayerData.Instance.IsNoAds;