Esempio n. 1
0
 /// <summary>
 /// 显示用户中心
 /// </summary>
 public void ShowPlatUserCenter()
 {
     if (mIsPlatReady)
     {
         AllSdkPlatform.instance().userCenter(mInstance.GetUserCenterVO());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 退出登录
 /// </summary>
 public void Logout()
 {
     if (mIsPlatReady)
     {
         AllSdkPlatform.instance().logout(mInstance.GetLogoutVO());
     }
 }
Esempio n. 3
0
 /// <summary>
 /// 初始化平台SDK
 /// </summary>
 public void InitSdk()
 {
     if (mIsPlatReady)
     {
         var platform = mInstance.GetInitSdkvo();
         AllSdkPlatform.instance().init(platform, logoutCallBack, null, QuiteGame);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// 登录
 /// </summary>
 /// <param name="callback"></param>
 public void Login(AllSdkPlatform.LoginSuccessCallback callback)
 {
     if (mIsPlatReady)
     {
         AllSdkPlatform.instance().login(mInstance.GetLoginVO(), callback);
     }
     else
     {
         //一键登录等
     }
 }
Esempio n. 5
0
 /// <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
     {
         //其他支付方式
     }
 }