Commit 1dc596a8 王帅

readme

1 个父辈 4714f905
fileFormatVersion: 2
guid: dacc14f0ae63e464898ae855382ee939
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0d582c56bdc5a470bbe99d93c288e15e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -149,11 +149,11 @@ public class AASDKDemoScript: MonoBehaviour
Because the amount of money minors can spend on the game is limited, they need to check before making in-app purchases.
1. Use:
`AntiAddictionStytemSDK.checkPayWithAmount(String amount)`
2. If you receive the following callback, you can proceed with the In-App Purchase as normal:
`AntiAddictionStytemSDK.checkPayWithAmount`
1. If you receive the following callback, you can proceed with the In-App Purchase as normal:
`HandleZAASDKCheckPayCompleted`
3. If callback is not received, payment cannot be made. Specific reasons will be prompted by the SDK.
4. After the payment is successful, you need to use the following methods to report the specific payment amount:
1. If callback is not received, payment cannot be made. Specific reasons will be prompted by the SDK.
2. After the payment is successful, you need to use the following methods to report the specific payment amount:
`HandleZAASDKCheckPayCompleted`
# Optional configuration
......@@ -175,8 +175,6 @@ The current default screen is as follows:
Portrait
<img src='resources/launch_V.jpg' width=150>
Landscape
<img src='resources/launch_H.jpg' width=350>
You can change this interface by adding image under the 'Assets/StreamingAssets' path:
......
......@@ -109,7 +109,7 @@ public class AASDKDemoScript: MonoBehaviour
print("AntiAddiction---HandleZAASDKCompleted");
}
// 此方法是调用 AntiAddictionStytemSDK - checkPayWithAmount(String amount) 后的结果回调
// 此方法是调用 AntiAddictionStytemSDK - checkPayWithAmount 后的结果回调
// 接收到此回调代表可以进行支付
public void HandleZAASDKCheckPayCompleted(object sender, EventArgs args)
{
......@@ -144,11 +144,11 @@ public class AASDKDemoScript: MonoBehaviour
# 游戏内支付校验
因为未成年人的游戏付费额度受限,所以在进行内购支付前需要检测
1. 调用方法:
`AntiAddictionStytemSDK.checkPayWithAmount(String amount)`
2. 如果您收到如下回调,则可以正常进行支付操作:
`AntiAddictionStytemSDK.checkPayWithAmount`
1. 如果您收到如下回调,则可以正常进行支付操作:
`HandleZAASDKCheckPayCompleted`
3. 未收到此回调,不能进行支付,具体原因将有SDK进行弹窗提示;
4. 支付成功后,您需要调用如下方法来上报具体的支付金额:
1. 未收到此回调,不能进行支付,具体原因将有SDK进行弹窗提示;
2. 支付成功后,您需要调用如下方法来上报具体的支付金额:
`HandleZAASDKCheckPayCompleted`
# 其他可选配置
......@@ -168,11 +168,9 @@ public class AASDKDemoScript: MonoBehaviour
#### 2. 自定义防沉迷画面
当前SDK默认画面如下:
竖屏
<img src='resources/launch_V.jpg' width=150>
横屏
<img src='resources/launch_H.jpg' width=350>
您可以通过在 `Assets/StreamingAssets` 路径下放入添加图像来改变此界面:
......

60.3 KB | 宽: | 高:

53.5 KB | 宽: | 高:

resources/ZAA_Launch_Bg_1.jpg
resources/ZAA_Launch_Bg_1.jpg
resources/ZAA_Launch_Bg_1.jpg
resources/ZAA_Launch_Bg_1.jpg
  • 两方对比
  • 交换覆盖
  • 透明覆盖
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!