先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
using asap.core;
|
|
using cfg;
|
|
using GameCore;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GiftPopupPanel_11 : MonoBehaviour
|
|
{
|
|
GameObject root_3rewards;
|
|
GameObject root_4rewards;
|
|
private void Awake()
|
|
{
|
|
root_3rewards = transform.Find("root/root_3rewards").gameObject;
|
|
root_4rewards = transform.Find("root/root_4rewards").gameObject;
|
|
FishingEventData fishingEventData = GContext.container.Resolve<FishingEventData>();
|
|
|
|
EventPackManager eventPackDataRead = fishingEventData.Get1A2EventPackManager();
|
|
if (eventPackDataRead == null)
|
|
{
|
|
UIManager.Instance.DestroyUI(UITypes.GiftPopupPanel_11);
|
|
return;
|
|
}
|
|
List<int> vipPackIds = eventPackDataRead.VIPPackList[fishingEventData.Pack1A2Data.vipLevel];
|
|
var _tables = GContext.container.Resolve<Tables>();
|
|
var pack1 = _tables.TbPack.GetOrDefault(vipPackIds[0]);
|
|
var itemData1 = GContext.container.Resolve<PlayerItemData>().GetItemDataByDropId(pack1.DropID);
|
|
root_3rewards.gameObject.SetActive(itemData1.Count <= 3);
|
|
root_4rewards.gameObject.SetActive(itemData1.Count > 3);
|
|
}
|
|
|
|
}
|