public static void Login(bool supportGuest) { if (GameDefines.OutputVerDefs == OutputVersionDefs.Windows || GameDefines.OutputVerDefs == OutputVersionDefs.AppStore) { Globals.Instance.MGUIManager.CreateWindow <GUIPreLogin>(delegate(GUIPreLogin gui) { Debug.Log("GUIPreLogin::UpdateGUI"); gui.UpdateGUI(); }); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.Nd91iPhone) { if (isNdCheckintVer) { // Please wait } else { U3dNdSender.Login(true); } } else if (GameDefines.OutputVerDefs == OutputVersionDefs.Nd91Android) { if (isNdCheckintVer) { // Please wait } else { NdSDKAgent.Login(); } } else if (GameDefines.OutputVerDefs == OutputVersionDefs.GfanAndroid) { U3dGfanSender.Login(true); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.GfaniPhone) { U3dGfaniOSSender.Login(true); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.UCAndroid || GameDefines.OutputVerDefs == OutputVersionDefs.UCiPhone) { UCSDKAgent.Login(); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.MiAndroid || GameDefines.OutputVerDefs == OutputVersionDefs.MiiPhone) { XiaomiSDKAgent.Login(); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.PPiPhone) { PPSDKAgent.Login(); } }
public static void Logout(bool cancelAutoLogin) { Debug.Log("ThirdPartyPlatform.Logout called " + cancelAutoLogin); if (GameDefines.OutputVerDefs == OutputVersionDefs.PPiPhone) { PPSDKAgent.EnterPPCenter(); } else { Logout_impl(cancelAutoLogin); } }
public static void EnterGameCenter() { if (GameDefines.OutputVerDefs == OutputVersionDefs.Nd91iPhone) { U3dNdSender.EnterNdPlatform(); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.Nd91Android) { NdSDKAgent.EnterNdPlatform(); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.UCAndroid || GameDefines.OutputVerDefs == OutputVersionDefs.UCiPhone) { UCSDKAgent.EnterUserCenter(); } else if (GameDefines.OutputVerDefs == OutputVersionDefs.PPiPhone) { PPSDKAgent.EnterPPCenter(); } else { Globals.Instance.MGUIManager.ShowSimpleCenterTips(20000019, true); } }