Пример #1
0
    public void Delete()
    {
        m_instance.DeleteItemFrom3D(itemName.text);


        if (m_instance.itemList.Count == 0)
        {
            listField.text = "List of Items here...";
        }
        else
        {
            listField.text = "";
            foreach (Item iter in m_instance.itemList)
            {
                //Debug.Log("Name: " + iter.Name + ", Quantity: " + iter.Quantity + ", Height: "
                //+ iter.Height + ", Width: " + iter.Width + ", Length: " + iter.Length);
                listField.text += "Name: " + iter.Name + ", Quantity: " + iter.Quantity + ", Height: "
                                  + iter.Height + ", Width: " + iter.Width + ", Length: " + iter.Length + "\n";
            }
        }
        capacity.text = m_instance.filledSpace + "/" + m_instance.capacity;
    }