private void OnPressAttack()
        {
            UISlotPanel selected_panel = UISlotPanel.GetFocusedPanel();

            if (selected_panel is InventoryPanel || selected_panel is EquipPanel)
            {
                ItemSlotPanel.CancelSelectionAll();
                UISlotPanel.UnfocusAll();
            }
        }
        public void CancelSelection()
        {
            ItemSlotPanel.CancelSelectionAll();
            CraftPanel.Get(player_id)?.CancelSelection();
            CraftSubPanel.Get(player_id)?.CancelSelection();
            ActionSelectorUI.Get(player_id)?.Hide();
            ActionSelector.Get(player_id)?.Hide();

            if (onCancelSelection != null)
            {
                onCancelSelection.Invoke();
            }
        }
 private void OnCancel(UISlot slot)
 {
     ItemSlotPanel.CancelSelectionAll();
     UISlotPanel.UnfocusAll();
 }
 private void OnCancel(UISlot slot)
 {
     ItemSlotPanel.CancelSelectionAll();
     Hide();
 }