public bool AddToInventory(ItemBase itembs) { itembs = itembs.Create(); InventorySlot freeslot = GetFreeInvSlot(); if (freeslot == null) { itembs.transform.position = UIOwner.transform.position; return(false); } itembs.SetOwner(UIOwner); itembs.ApplySockets(); itemPossesion.Add(itembs, freeslot); freeslot.Item = itembs; itembs.OnAddedToInventory(); itembs.Sleep(); return(true); }