private static void DropMovedItem(ItemData item, MovedItemsInfo moveInfo) { if (item.stackID == moveInfo.OriginalStackID) { if (item.ownerContainer != null) item.ownerContainer.Remove(item, true); item.stackID = moveInfo.NewStackID; } }
private static void DropMovedItem(ItemData item, MovedItemsInfo moveInfo) { if (item.stackID == moveInfo.OriginalStackID) { if (item.ownerContainer != null) { item.ownerContainer.Remove(item, true); } item.stackID = moveInfo.NewStackID; } }
private void DropMovedItems(ItemData[] containerItems, MovedItemsInfo moveInfo) { foreach (ItemData data in containerItems) { if (data.stackID == moveInfo.OriginalStackID) { if (data.ownerContainer != null) data.ownerContainer.Remove(data, true); data.stackID = moveInfo.NewStackID; itemDrop.DropItemIntoWorld(data, TransformForDropPosition.position, DropObjDefaultModel); } } }
private void DropMovedItems(ItemData[] containerItems, MovedItemsInfo moveInfo) { foreach (ItemData data in containerItems) { if (data.stackID == moveInfo.OriginalStackID) { if (data.ownerContainer != null) { data.ownerContainer.Remove(data, true); } data.stackID = moveInfo.NewStackID; itemDrop.DropItemIntoWorld(data, TransformForDropPosition.position, DropObjDefaultModel, false); } } }