void dropTheRestItems(int size)
{
if (size < mainInventory.ItemsInInventory.Count)
{
for (int i = size; i < mainInventory.ItemsInInventory.Count; i++)
{
GameObject dropItem = (GameObject)Instantiate(mainInventory.ItemsInInventory[i].itemModel);
dropItem.AddComponent<PickUpItem>();
dropItem.GetComponent<PickUpItem>().item = mainInventory.ItemsInInventory[i];
dropItem.transform.localPosition = GameObject.FindGameObjectWithTag("Player").transform.localPosition;
}
}
}