Exemple #1
0
    // Sets Hotbar selected color and calls SelectItemAction
    public void SelectItem()
    {
        hotbar.ResetSelectedSlots();
        backgroundImage.color = hotbar.selectedColor;

        selected = true;

        hotbar.SelectItemAction?.Invoke(GetInventoryItem());
    }