Exemplo n.º 1
0
    void Start()
    {
        Initialize();
        InventoryList <string> inventoryList = new InventoryList <string>();

        inventoryList.SetItem("Potion");
        Debug.Log(inventoryList.item);
    }
Exemplo n.º 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);
    }