/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = orderId + "," + itemID + "," + itemName + "," + itemPrice + "," + itemCount + "," + reserved; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = orderSerial + "," + needPayRMB + "," + payDescription; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = orderId + "," + productName + "," + gameName + "," + productPrice + "," + userParams; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 登录 /// </summary> public void login() { #if UNITY_IPHONE AllSdkPlatform.sdkLogin(); Debug.Log("Login_91"); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = amount + "," + productName + "," + extInfo; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = productName + "," + amount + "," + orderId; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 实名制注册 /// </summary> public void realNameRegister() { if (isSupportRealNameRegister) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.realNameRegister.ToString()); } }
/// <summary> /// 初始化 /// </summary> public void init() { #if UNITY_IPHONE string parameter = appId + "," + appKey; AllSdkPlatform.sdkInit(parameter); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = price + "," + billNo + "," + billTitle + "," + roleId + "," + zoneId; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = orderId + "," + price + "," + desc + "," + merpriv; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = price + "," + serverId + "," + extra; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 退出游戏 /// </summary> public void quit() { if (isSupportQuit) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.quit.ToString()); } }
/// <summary> /// 隐藏悬浮菜单 /// </summary> public void hideToolBar() { if (isSupportHideToolbar) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.hideToolBar.ToString()); } }
/// <summary> /// 登出 /// </summary> public void logout() { if (isSupportLogout) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.logout.ToString()); } }
/// <summary> /// 打开用户中心 /// </summary> public void userCenter() { if (isSupportUserCenter) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.userCenter.ToString()); } }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = GoodsCode; AllSdkPlatform.sdkPay(parameter); #endif }
/// <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 }
/// <summary> /// 登录 /// </summary> public void login() { #if UNITY_IPHONE string parameter = isAutoLogin.ToString(); AllSdkPlatform.sdkLogin(parameter); #endif }
/// <summary> ///向sdk发送消息 /// </summary> public void sendMessageToSDK() { if (isSupportSendMessageToSdk) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.sendMessageToSDK.ToString()); } }
/// <summary> /// 防沉迷查询 /// </summary> public void antiAddictionQuery() { if (isSupportAntiAddictionQuery) { AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.antiAddictionQuery.ToString()); } }
/// <summary> /// 支付 /// </summary> public void pay() { #if UNITY_IPHONE string parameter = dealseq + "," + fee + "," + payId + "," + gamesvr + "," + gameusersvr + "," + subject; AllSdkPlatform.sdkPay(parameter); #endif }
/// <summary> /// 登录 /// </summary> public void login() { #if UNITY_IPHONE string parameter = channelId; AllSdkPlatform.sdkLogin(parameter); #endif }
/// <summary> /// 防沉迷查询 /// </summary> public void antiAddictionQuery() { if (isSupportAntiAddictionQuery) { object[] parameter = new object[] { qihooUserId, accessToken }; AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.antiAddictionQuery.ToString(), parameter); } }
/// <summary> /// 实名制注册 /// </summary> public void realNameRegister() { if (isSupportRealNameRegister) { object[] parameter = new object[] { qihooUserId }; AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.realNameRegister.ToString(), parameter); } }
/// <summary> ///向sdk发送消息 /// </summary> public void sendMessageToSDK() { if (isSupportSendMessageToSdk) { object[] parameter = new object[] { gameId, service, role, grade }; AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.sendMessageToSDK.ToString(), parameter); } }
/// <summary> /// 初始化 /// </summary> public void init() { if (isSupportInit) { object[] parameter = new object[] { isLandScape, isBgTransparent }; AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.init.ToString(), parameter); } }
/// <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 }
/// <summary> /// 初始化 /// </summary> public void init() { if (isSupportInit) { object[] parameter = new object[] { appKey }; AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.init.ToString(), parameter); } }
/// <summary> /// 支付 /// </summary> public void pay() { object[] parameter = new object[] { productId, customAmount, partnerTransactionNo }; AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.pay.ToString(), parameter); }
/// <summary> /// 显示悬浮菜单 /// </summary> public void showToolBar() { if (!isSupportShowToolbar) { return; } AllSdkPlatform.instance().callAndroidSdkFunction(SDKFunctionNameEnum.showToolBar.ToString()); }