void Update()
 {
     if (CurrentPanel == Panels.Item)
     {
         if (VerticalIndex < 0)
         {
             VerticalIndex = 0;
         }
         else if (VerticalIndex > ItemUIControl.Lines.GetSize() - 1)
         {
             VerticalIndex = ItemUIControl.Lines.GetSize() - 1;
         }
         for (int x = 0; x < ItemUIControl.Lines.GetSize(); x++)
         {
             if (x != VerticalIndex)
             {
                 ItemUIControl.Lines.Get(x).Selector.GetComponent <Image>().enabled = false;
             }
             else
             {
                 ItemUIControl.Lines.Get(x).Selector.GetComponent <Image>().enabled = true;
                 foreach (Transform t in DescriptionPanel.transform)
                 {
                     Destroy(t.gameObject);
                 }
                 if (CurrentCategory ==
                     PlayerInventory.GetItemAtIndexAndCategory(
                         VerticalIndex,
                         CurrentCategory
                         ).Category
                     )
                 {
                     PlayerInventory.GetItemAtIndexAndCategory(
                         VerticalIndex,
                         CurrentCategory
                         ).UIEmitter.Emit(new OnUIItemDescribeEventData(
                                              Owner,
                                              DescriptionPanel
                                              ));
                 }
             }
         }
     }
     else if (CurrentPanel == Panels.Category)
     {
         if (VerticalIndex < 0)
         {
             VerticalIndex = 0;
         }
         else if (VerticalIndex > CategryUIControl.Lines.GetSize() - 1)
         {
             VerticalIndex = CategryUIControl.Lines.GetSize() - 1;
         }
         for (int x = 0; x < CategryUIControl.Lines.GetSize(); x++)
         {
             if (x != VerticalIndex)
             {
                 CategryUIControl.Lines.Get(x).Selector.GetComponent <Image>().enabled = false;
             }
             else
             {
                 CategryUIControl.Lines.Get(x).Selector.GetComponent <Image>().enabled = true;
             }
         }
     }
     else if (CurrentPanel == Panels.Equipment)
     {
         if (VerticalIndex < 0)
         {
             VerticalIndex = 0;
         }
         else if (VerticalIndex > PlayerEquipment.GetAllSlots().Count - 1)
         {
             VerticalIndex = PlayerEquipment.GetAllSlots().Count - 1;
         }
         if (PlayerEquipment.IsItemInSlot((EquipmentSlotEnum)VerticalIndex))
         {
             Item SelectedSlotItem = PlayerEquipment.GetItemInSlot((EquipmentSlotEnum)VerticalIndex);
             EquipmentPanel.SetCurrentItem(SelectedSlotItem);
             RefreshComparedItems();
         }
         else
         {
             EquipmentPanel.ClearCurrentItem();
             RefreshComparedItems();
         }
         EquipmentPanel.SetSelectedSlot((EquipmentSlotEnum)VerticalIndex);
         foreach (PlayerEquipmentPanelSlot slot in EquipmentPanel.GetAllSlots())
         {
             if (PlayerEquipment.IsItemInSlot(slot.EquipmentSlot))
             {
                 slot.ItemImage.enabled = true;
             }
             else
             {
                 slot.ItemImage.enabled = false;
             }
         }
         EquipmentPanel.GetNewItem().UIEmitter.Emit(new OnUIItemHoverEquipmentSlotEventData(
                                                        EquipmentPanel.GetSelectedSlot().EquipmentSlot,
                                                        EquipmentPanel.GetSelectedSlot().gameObject
                                                        ));
     }
 }