private void GetSelectedInventoryItemAction() { if (selectedInventoryItem == null) { Debug.LogWarning("NO ITEM WAS SELECTED BUT ACTION WAS USED"); return; } else { selectedInventoryItem.Action(); } }