27 lines
552 B
C#
27 lines
552 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
using DG.Tweening;
|
|
|
|
public class shopPanel: ui_huodong
|
|
{
|
|
public List<itemInfo> itemInfos = new List<itemInfo>();
|
|
|
|
void initShop()
|
|
{
|
|
|
|
int index= Scene_main_jiekou.instance._mallResponsePro.Data.TotalCount;//É̳ǵÄÉÌÆ·ÊýÁ¿
|
|
|
|
foreach (itemInfo item in itemInfos)
|
|
{
|
|
if (index>0)
|
|
{
|
|
item.gameObject.SetActive(true);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|