先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using asap.core;
|
|
using cfg;
|
|
using GameCore;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class CampInfoPanel : MonoBehaviour
|
|
{
|
|
private TMP_Text _textPrice;
|
|
private RewardItemNew _reward;
|
|
private Button _btnClose;
|
|
private void Awake()
|
|
{
|
|
_btnClose = transform.Find("btn_close").GetComponent<Button>();
|
|
_textPrice = transform.Find("root/info2/btn_construct2/text_cost").GetComponent<TMP_Text>();
|
|
_reward = transform.Find("root/info4/reward").GetComponent<RewardItemNew>();
|
|
}
|
|
private void Start()
|
|
{
|
|
_btnClose.onClick.AddListener(() => UIManager.Instance.DestroyUI(UITypes.CampInfoPanel));
|
|
_textPrice.text = ((int) (GContext.container.Resolve<Tables>().TbMapData.DataMap[114].ConstrutionCost
|
|
* GContext.container.Resolve<Tables>().TbConstructionInfiniteConfig.CashMagList[0])).ToString();
|
|
_reward.SetData(GContext.container.Resolve<PlayerItemData>().GetItemDataOne(
|
|
GContext.container.Resolve<Tables>().TbConstructionInfiniteReward[1].DropID));
|
|
}
|
|
}
|