fix:1、添加支付,使用sdk的支付方案

This commit is contained in:
2026-05-21 10:56:37 +08:00
parent d8b41f25ba
commit 8144a27fdb
34 changed files with 4555 additions and 3840 deletions
+3 -1
View File
@@ -65,7 +65,7 @@ namespace RedHotRoast
ui.com_gold.y += Screen.safeArea.y;
}
ui.gift_switch.selectedIndex = 1;
ui.gift_switch.selectedIndex = GameHelper.IsGiftSwitch() ? 1 : 0;
total_item = 8;
selectIndex = DataMgr.PlayerAvatarId.Value;
@@ -143,6 +143,8 @@ namespace RedHotRoast
// ui.btn_credits.SetClick(() => { UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PrivacyUI_Open, 2); });
ui.btn_restore.SetClick(() =>
{
//恢复购买按钮
IAPPayManager.Instance.OnRestoreButtonClicked();
// ApplePayManager.Instance.AppleRestore((success, message) =>
// {
// if (success)