예제 #1
0
    void Start()
    {
        Initialize();
        InventoryList <string> inventoryList = new InventoryList <string>();

        inventoryList.SetItem("Potion");
        Debug.Log(inventoryList.item);
    }
예제 #2
0
    private void Start()
    {
        Initialize();
        //implimenting our custom generic class InventoryList
        //all the InventroyList does is print out when a new InventoryList is initialized
        InventoryList <string> inventoryList = new InventoryList <string>();

        inventoryList.SetItem("Potion");
        Debug.Log(inventoryList.item);
    }