fix:1、删除部分不用的资源代码。2、a面修复bug
This commit is contained in:
@@ -6,7 +6,7 @@ namespace RedHotRoast
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using IgnoreOPS;
|
||||
using SGModule.ApplePay;
|
||||
// using SGModule.ApplePay;
|
||||
using SGModule.Common;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -77,23 +77,23 @@ namespace RedHotRoast
|
||||
};
|
||||
List<ApplePay2> listA = ConfigSystem.GetConfig<ApplePay2>();
|
||||
|
||||
// 方式一:LINQ Select
|
||||
List<ProductConfig> listB = listA
|
||||
.Select(a => new ProductConfig
|
||||
{
|
||||
name = a.name,
|
||||
sku = a.sku,
|
||||
price = a.price,
|
||||
type = a.type
|
||||
})
|
||||
.ToList();
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
GameObject.Find("game_bg_a").SetActive(false);
|
||||
}
|
||||
//初始化商品
|
||||
ApplePayManager.Instance.InitProduct(listB,
|
||||
ConfigManager.GameConfig.packageName, PurchasingManager.ApplePaySuccessCallback(appleData));
|
||||
// // 方式一:LINQ Select
|
||||
// List<ProductConfig> listB = listA
|
||||
// .Select(a => new ProductConfig
|
||||
// {
|
||||
// name = a.name,
|
||||
// sku = a.sku,
|
||||
// price = a.price,
|
||||
// type = a.type
|
||||
// })
|
||||
// .ToList();
|
||||
// if (GameHelper.IsGiftSwitch())
|
||||
// {
|
||||
// GameObject.Find("game_bg_a").SetActive(false);
|
||||
// }
|
||||
// //初始化商品
|
||||
// ApplePayManager.Instance.InitProduct(listB,
|
||||
// ConfigManager.GameConfig.packageName, PurchasingManager.ApplePaySuccessCallback(appleData));
|
||||
|
||||
if (GameHelper.IsGiftSwitch() && enterGame)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user