// Use this for initialization
    void Start()
    {
        database = ItemDataBase.GetDataBase();

        parent      = this.gameObject;
        childAmount = parent.transform.childCount;
        for (int i = 0; i < childAmount; i++)
        {
            shopSlot.Add(parent.transform.GetChild(i).gameObject);
            //print (shopSlot[i].gameObject.name);
        }
        for (int i = 0; i < shopSlot.Count; i++)
        {
            FindItems(shopSlot[i].name, i);
        }
    }
    // Use this for initialization
    void Start()
    {
        database = ItemDataBase.GetDataBase();


        //inventoryPanel = GameObject.Find("Inventory_Panel");
        //slotPanel = inventoryPanel.transform.FindChild("Slot_Panel").gameObject;

        for (int i = 0; i < slotAmount; i++)
        {
            items.Add(new Item());
            slots.Add(Instantiate(inventorySlot));
            slots[i].GetComponent <UI_Slot>().id = i;
            slots[i].transform.SetParent(slotPanel.transform);
        }


        AddItem(0);
        AddItem(1);
        AddItem(1);
        AddItem(1);
    }
 // Use this for initialization
 void Start()
 {
     database   = ItemDataBase.GetDataBase();
     inventory  = GameObject.FindGameObjectWithTag("Inventory");
     chosenArea = transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.GetChild(9).GetChild(0).GetChild(0).GetChild(1).gameObject;
 }