示例#1
0
    void PassSelection()
    {
        for (int i = 0; i < selectedIndices.Count; i++)
        {
            if (inventory.slots[selectedIndices[i]].itemStored != null)
            {
                ItemsDescription des = inventory.slots[selectedIndices[i]].itemStored.itemProperties.itemDescription;
                if (des != null)
                {
                    itemDescriptions.Add(des);
                }
            }
        }

        if (targetQuestionBox != null)
        {
            //Sets the selected items in the question box
            targetQuestionBox.SetSelectedItems(itemDescriptions);
        }

        ToggleActivation(inventory, targetQuestionBox);
    }