Example #1
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = orderId + "," + itemID + "," + itemName + "," + itemPrice + "," + itemCount + "," + reserved;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #2
0
 /// <summary>
 /// 支付
 /// </summary>
 public void pay()
 {
                 #if UNITY_IPHONE
     string parameter = orderSerial + "," + needPayRMB + "," + payDescription;
     AllSdkPlatform.sdkPay(parameter);
                 #endif
 }
Example #3
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = orderId + "," + productName + "," + gameName + "," + productPrice + "," + userParams;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #4
0
        /// <summary>
        /// 登录
        /// </summary>
        public void login()
        {
#if UNITY_IPHONE
            AllSdkPlatform.sdkLogin();
            Debug.Log("Login_91");
#endif
        }
Example #5
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = amount + "," + productName + "," + extInfo;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #6
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = productName + "," + amount + "," + orderId;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #7
0
 /// <summary>
 /// 实名制注册
 /// </summary>
 public void realNameRegister()
 {
     if (isSupportRealNameRegister)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.realNameRegister.ToString());
     }
 }
Example #8
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void init()
        {
#if UNITY_IPHONE
            string parameter = appId + "," + appKey;
            AllSdkPlatform.sdkInit(parameter);
#endif
        }
Example #9
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = price + "," + billNo + "," + billTitle + "," + roleId + "," + zoneId;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #10
0
 /// <summary>
 /// 支付
 /// </summary>
 public void pay()
 {
                 #if UNITY_IPHONE
     string parameter = orderId + "," + price + "," + desc + "," + merpriv;
     AllSdkPlatform.sdkPay(parameter);
                 #endif
 }
Example #11
0
 /// <summary>
 /// 支付
 /// </summary>
 public void pay()
 {
                 #if UNITY_IPHONE
     string parameter = price + "," + serverId + "," + extra;
     AllSdkPlatform.sdkPay(parameter);
                 #endif
 }
Example #12
0
 /// <summary>
 /// 退出游戏
 /// </summary>
 public void quit()
 {
     if (isSupportQuit)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.quit.ToString());
     }
 }
Example #13
0
 /// <summary>
 /// 隐藏悬浮菜单
 /// </summary>
 public void hideToolBar()
 {
     if (isSupportHideToolbar)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.hideToolBar.ToString());
     }
 }
Example #14
0
 /// <summary>
 /// 登出
 /// </summary>
 public void logout()
 {
     if (isSupportLogout)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.logout.ToString());
     }
 }
Example #15
0
 /// <summary>
 /// 打开用户中心
 /// </summary>
 public void userCenter()
 {
     if (isSupportUserCenter)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.userCenter.ToString());
     }
 }
Example #16
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = GoodsCode;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #17
0
        /// <summary>
        ///send message to sdk.
        /// </summary>
        public void sendMessageToSDK()
        {
#if UNITY_IPHONE
            if (!isSupportSendMessageToSdk)
            {
                return;
            }

            if (this.sendMessageType == 0)
            {
                string parameter = sendMessageType + "," + servId + "," + ServName;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
            else if (this.sendMessageType == 1)
            {
                string parameter = sendMessageType + "," + roleId + "," + roleName + "," + roleGrade;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
            else if (this.sendMessageType == 2)
            {
                string parameter = sendMessageType + "," + roleId + "," + roleGrade;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
            else if (this.sendMessageType == 3)
            {
                string parameter = sendMessageType + "," + eventName + "," + amount + "," + currencyCode;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
#endif
        }
Example #18
0
 /// <summary>
 /// 登录
 /// </summary>
 public void login()
 {
                 #if UNITY_IPHONE
     string parameter = isAutoLogin.ToString();
     AllSdkPlatform.sdkLogin(parameter);
                 #endif
 }
Example #19
0
 /// <summary>
 ///向sdk发送消息
 /// </summary>
 public void sendMessageToSDK()
 {
     if (isSupportSendMessageToSdk)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.sendMessageToSDK.ToString());
     }
 }
Example #20
0
 /// <summary>
 /// 防沉迷查询
 /// </summary>
 public void antiAddictionQuery()
 {
     if (isSupportAntiAddictionQuery)
     {
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.antiAddictionQuery.ToString());
     }
 }
Example #21
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = dealseq + "," + fee + "," + payId + "," + gamesvr + "," + gameusersvr + "," + subject;
            AllSdkPlatform.sdkPay(parameter);
#endif
        }
Example #22
0
 /// <summary>
 /// 登录
 /// </summary>
 public void login()
 {
                 #if UNITY_IPHONE
     string parameter = channelId;
     AllSdkPlatform.sdkLogin(parameter);
                 #endif
 }
Example #23
0
 /// <summary>
 /// 防沉迷查询
 /// </summary>
 public void antiAddictionQuery()
 {
     if (isSupportAntiAddictionQuery)
     {
         object[] parameter = new object[] { qihooUserId, accessToken };
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.antiAddictionQuery.ToString(), parameter);
     }
 }
Example #24
0
 /// <summary>
 /// 实名制注册
 /// </summary>
 public void realNameRegister()
 {
     if (isSupportRealNameRegister)
     {
         object[] parameter = new object[] { qihooUserId };
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.realNameRegister.ToString(), parameter);
     }
 }
Example #25
0
 /// <summary>
 ///向sdk发送消息
 /// </summary>
 public void sendMessageToSDK()
 {
     if (isSupportSendMessageToSdk)
     {
         object[] parameter = new object[] { gameId, service, role, grade };
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.sendMessageToSDK.ToString(), parameter);
     }
 }
Example #26
0
 /// <summary>
 /// 初始化
 /// </summary>
 public void init()
 {
     if (isSupportInit)
     {
         object[] parameter = new object[] { isLandScape, isBgTransparent };
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.init.ToString(), parameter);
     }
 }
Example #27
0
        /// <summary>
        /// 支付
        /// </summary>
        public void pay()
        {
#if UNITY_IPHONE
            string parameter = cooOrderSerial + "," + productId + "," + productName + "," + productPrice + "," + productOrignalPrice + "," + productCount + "," + payDescription;
            AllSdkPlatform.sdkPay(parameter);
            Debug.Log("cooOrderSerial===" + cooOrderSerial + "productId===" + productId + "productName===" + productName + "productPrice===" + productPrice);
#endif
        }
Example #28
0
 /// <summary>
 /// 初始化
 /// </summary>
 public void init()
 {
     if (isSupportInit)
     {
         object[] parameter = new object[] { appKey };
         AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.init.ToString(), parameter);
     }
 }
Example #29
0
 /// <summary>
 /// 支付
 /// </summary>
 public void pay()
 {
     object[] parameter = new object[]
     {
         productId, customAmount, partnerTransactionNo
     };
     AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.pay.ToString(), parameter);
 }
Example #30
0
        /// <summary>
        /// 显示悬浮菜单
        /// </summary>
        public void showToolBar()
        {
            if (!isSupportShowToolbar)
            {
                return;
            }

            AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.showToolBar.ToString());
        }