예제 #1
0
    public void AddItem(Item.EType InType)
    {
        Item NewItem = new Item(InType);

        AddItem(NewItem);
        Debug.Log(NewItem.Name);
    }
예제 #2
0
    public void RemoveItem(Item.EType InType)
    {
        int Index = Items.FindIndex(Element => Element.Type == InType);

        if (Index != -1)
        {
            Items.RemoveAt(Index);
        }
    }