/// <summary> /// 显示用户中心 /// </summary> public void ShowPlatUserCenter() { if (mIsPlatReady) { AllSdkPlatform.instance().userCenter(mInstance.GetUserCenterVO()); } }
/// <summary> /// 退出登录 /// </summary> public void Logout() { if (mIsPlatReady) { AllSdkPlatform.instance().logout(mInstance.GetLogoutVO()); } }
/// <summary> /// 初始化平台SDK /// </summary> public void InitSdk() { if (mIsPlatReady) { var platform = mInstance.GetInitSdkvo(); AllSdkPlatform.instance().init(platform, logoutCallBack, null, QuiteGame); } }
/// <summary> /// 登录 /// </summary> /// <param name="callback"></param> public void Login(AllSdkPlatform.LoginSuccessCallback callback) { if (mIsPlatReady) { AllSdkPlatform.instance().login(mInstance.GetLoginVO(), callback); } else { //一键登录等 } }
/// <summary> /// 支付 /// </summary> /// <param name="goods"></param> /// <param name="orderData"></param> /// <param name="payCallback"></param> public void Recharge(RechargeItemInfo goods, string orderData = null, AllSdkPlatform.PaySuccessCallback payCallback = null) { if (mIsPlatReady) { if (mInstance.GetRechargeVO(goods, orderData) != null) { AllSdkPlatform.instance().pay(mInstance.GetRechargeVO(goods, orderData), payCallback); } } else { //其他支付方式 } }