using cfg.ActorCfg; using cfg.item; using Cysharp.Threading.Tasks; using Framework; using Gameplay; using PhxhSDK; using System; using TMPro; using UnityEngine; using UnityEngine.UI; public class ItemObj : UIGameObjectWrapper { GameObject _parentGo; Action _action;//用来做点击事件 int _Id; GameObject _itemGo; DataItem Cfg; Button clickBtn; UIType _type; int count = 0; public enum interactiveType { normail, selected, gray, } public enum UIType//测试,正式美术图出来后弃用 { cultivate, mail, shop, } //美术没出图前都用这 public ItemObj(int itemId, GameObject parentObject, UIType uIType, GameObject go, int itemCount = 0, bool isScale = false) : base(go, isScale) { InitData(itemId, parentObject, itemCount); _type = uIType; _itemGo = go; _itemGo.transform.SetParent(_parentGo.transform); _itemGo.transform.localPosition = Vector3.zero; RefreshDetail(); CommonUtils.BindButton(FindObj("click").GetComponent