Exemple #1
0
    public void OnItemSelected(int toPos)
    {
        this.toPos  = toPos;
        toPossessor = itemsDisplay.CurrentPossessor;
        ItemHolder[] currentInv = ItemManager.Instance.GetInventory(toPossessor);

        if (currentInv[toPos].IsEmpty() || currentInv[toPos].SameItem(currentInv[fromPos]))
        {
            itemsDisplay.EnableAmountSelector(itemQuantity);
            promptText.SetActive(false);
        }
        else
        {
            promptText.GetComponent <Text>().text = "PLEASE CHOOSE A VALID SLOT!";
        }
    }