fix:1、删除部分不用的资源代码。2、a面修复bug
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using FGUI.ZM_Common_01;
|
||||
using FGUI.ZM_Setting_07;
|
||||
using SGModule.ApplePay;
|
||||
// using SGModule.ApplePay;
|
||||
using SGModule.Common.Extensions;
|
||||
using SGModule.Net;
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace RedHotRoast
|
||||
ui.com_gold.y += Screen.safeArea.y;
|
||||
|
||||
}
|
||||
ui.gift_switch.selectedIndex = GameHelper.IsGiftSwitch() ? 1 : 0;
|
||||
ui.gift_switch.selectedIndex = 1;
|
||||
|
||||
total_item = 8;
|
||||
selectIndex = DataMgr.PlayerAvatarId.Value;
|
||||
@@ -138,26 +138,26 @@ namespace RedHotRoast
|
||||
// ui.btn_credits.menus.selectedIndex = btn_menu.Menus_credits;
|
||||
ui.btn_privacy.SetClick(() => { UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PrivacyUI_Open, 0); });
|
||||
ui.btn_terms.SetClick(() => { UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PrivacyUI_Open, 1); });
|
||||
ui.btn_official.SetClick(() => { OpenBrowser.OpenURL("https://www.frozenarena.top/"); });
|
||||
ui.btn_official.SetClick(() => { OpenBrowser.OpenURL("https://reddhotcompangost.com/"); });
|
||||
ui.btn_us.SetClick(() => { GameHelper.OpenEmail(); });
|
||||
// ui.btn_credits.SetClick(() => { UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PrivacyUI_Open, 2); });
|
||||
ui.btn_restore.SetClick(() =>
|
||||
{
|
||||
ApplePayManager.Instance.AppleRestore((success, message) =>
|
||||
{
|
||||
if (success)
|
||||
{
|
||||
Debug.Log("[barry] restore success: " + success);
|
||||
GameHelper.ShowTips("Restore_pur", true);
|
||||
SaveData.GetSaveObject().have_slot = success;
|
||||
DataMgr.VipLevel.Value = 3;
|
||||
DataMgr.VipExpirationTime.Value = ServerClock.GetCurrentServerTime() + 7 * 24 * 60 * 60;
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.ShowTips("recoverable_tips", true);
|
||||
}
|
||||
});
|
||||
// ApplePayManager.Instance.AppleRestore((success, message) =>
|
||||
// {
|
||||
// if (success)
|
||||
// {
|
||||
// Debug.Log("[barry] restore success: " + success);
|
||||
// GameHelper.ShowTips("Restore_pur", true);
|
||||
// SaveData.GetSaveObject().have_slot = success;
|
||||
// DataMgr.VipLevel.Value = 3;
|
||||
// DataMgr.VipExpirationTime.Value = ServerClock.GetCurrentServerTime() + 7 * 24 * 60 * 60;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// GameHelper.ShowTips("recoverable_tips", true);
|
||||
// }
|
||||
// });
|
||||
});
|
||||
|
||||
ui.btn_language.SetClick(() => {
|
||||
@@ -177,7 +177,7 @@ namespace RedHotRoast
|
||||
if (!SaveData.GetSaveObject().is_get_removead && random_ < GameHelper.GetCommonModel().HomeInterstitialAd)
|
||||
{
|
||||
//GameHelper.ShowInterstitial("BackHall");
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.AdcomingUI_Open);
|
||||
// uiCtrlDispatcher.Dispatch(UICtrlMsg.AdcomingUI_Open);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user