void OnSelect(ContainerItem item) { m_currentSelectItem = item; ContainerList.ApplyAllItem(c => c.LoseFouce()); item.OnFouce(); EquipmentUpgradeDataManger.Instance.CurrentSelectEquip = item.m_itemFileInfo; EquipmentUpgradePanelManager.GetInstance().UpdateResultPanel(); }
public static EquipmentUpgradePanelManager GetInstance() { if (!instance) { instance = (EquipmentUpgradePanelManager)GameObject.FindObjectOfType(typeof(EquipmentUpgradePanelManager)); if (!instance) { Debug.LogError("没有附加JewelBesetManager脚本的gameobject在场景中"); } } return(instance); }
public void UpdateListPanel() { if (EquipmentUpgradeDataManger.Instance.CurrentType != UpgradeType.Upgrade) { ItemDatas = ContainerInfomanager.Instance.GetEquiptItemList(); } else { ItemDatas = ContainerInfomanager.Instance.GetAllEquipment().Where(c => (c.LocalItemData as EquipmentData).UpgradeID != 0).ToList(); } ItemDatas.Sort((x, y) => Rank(x, y)); StartCoroutine(CreatListItem()); var item = GetDefultItem(); if (item != null) { item.SelectItem(); } else { EquipmentUpgradeDataManger.Instance.CurrentSelectEquip = null; EquipmentUpgradePanelManager.GetInstance().UpdateResultPanel(); } }