// Use this for initialization
	void Start () {
        gameManager = GameObject.FindGameObjectWithTag("GameController");

        //On GameScene Load
        database = gameManager.GetComponent<ItemDatabaseScript>();

        //GenerateLoot();
	}
    // Use this for initialization
    void Start()
    {
        database = GameObject.FindGameObjectWithTag("ItemDatabase").GetComponent<ItemDatabaseScript>();

        for (int i = 0; i < (slotsX *slotsY); i++)
        {
            //add empty slots to list
            slots.Add(new ItemScript());
            //add blank item to every slot on the list
            inventory.Add(new ItemScript());
        }

        AddItem(0);
        AddItem(0);
        AddItem(1);
        AddItem(1);
    }