12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using GameLogic.Bag;
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "DaoYouWidgetItem" )]
- public partial class DaoYouWidgetItem : UIComponent
- {
- private void Init()
- {
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- }
- public async void CustomInit(ItemInfo itemInfo)
- {
- WidgetItem widgetItem = await UIManager.Instance.CreateGComponentForObject<WidgetItem>(WidgetItemGam, null);
- widgetItem.InitWidget(itemInfo);
- }
- public void Award()
- {
- Icon_Award.gameObject.SetActive(true);
- Icon_Gou.gameObject.SetActive(false);
- }
- public void ShowGou()
- {
- Icon_Award.gameObject.SetActive(false);
- Icon_Gou.gameObject.SetActive(true);
- }
- public void ColsePool()
- {
- Icon_Award.gameObject.SetActive(false);
- Icon_Gou.gameObject.SetActive(false);
- }
- public override void DormancyObj()
- {
- ColsePool();
- base.DormancyObj();
- }
- }
- }
|