public void DisplayScrolView()
 {
     foreach (Item m in materials)
     {
         GameObject content = Instantiate(ItemPrefab, transform.position, transform.rotation) as GameObject;
         content.GetComponent <M_Content>().SetContent(m, itemBox.GetItemAmount(m.GetId()), combinationController, ResetContent);
         content.transform.SetParent(MaterialScollView.transform);
         content.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
     }
 }
    public bool checkCombination()
    {
        Dictionary <int, int> component = recipe.getComponent(selectedItemId);

        foreach (KeyValuePair <int, int> item in component)
        {
            int amount = itemBox.GetItemAmount(item.Key);
            Debug.Log(item.Key + ", " + item.Value);
            if (item.Value > amount)
            {
                return(false);
            }

            if (item.Key <= 200 && amount <= 1)
            {
                return(false);
            }
        }
        return(true);
    }