private void SetCurrentItemPosition(Room room, ItemObject item, Vector3 itemPosition) { item.SetPosition(itemPosition); item.Item.RoomPosition = roomPosition(item.Item, room.Size, itemPosition); bool[,] bottomGrids, sideGrids; bool canPlaced = gridTypes(item.Item, out bottomGrids, out sideGrids); editedItem.CanPlaced = canPlaced; studioPanel.SetPlaceButtonAbled(canPlaced); gridGroup.SetTriangleType(canPlaced); gridGroup.SetBottomGridsType(bottomGrids); if (item.Type == ItemType.Vertical) { gridGroup.SetSideGridsType(sideGrids); } gridGroup.SetTransform(item.Item); }