示例#1
0
 public void UpdateNonEquipItems()
 {
     if (uiNonEquipItems != null)
     {
         uiNonEquipItems.UpdateData(BasePlayerCharacterController.OwningCharacter);
     }
 }
示例#2
0
        public void OnUpdateCharacterItems()
        {
            if (!IsVisible())
            {
                return;
            }

            if (uiCharacterItem != null)
            {
                if (CharacterItem == null)
                {
                    uiCharacterItem.Hide();
                }
                else
                {
                    uiCharacterItem.Setup(new CharacterItemTuple(CharacterItem, Level, InventoryType), OwningCharacter, IndexOfData);
                    uiCharacterItem.Show();
                }
            }

            if (uiSocketEnhancerItems != null)
            {
                uiSocketEnhancerItems.filterItemTypes = new List <ItemType>()
                {
                    ItemType.SocketEnhancer
                };
                uiSocketEnhancerItems.filterCategories = new List <string>();
                uiSocketEnhancerItems.UpdateData(OwningCharacter);
            }
        }