protected void MoveToExistingItem(Droppable cell) { var itemSlot = cell.GetSlot(); var containingCells = FindCells(itemSlot.CurrentItemCode); foreach (var containingCell in containingCells) { if (!containingCell.Equals(cell)) { itemSlot.Add(containingCell.GetSlot()); } } }
private void EnableAction(Droppable cell) { var cellSlot = cell.GetSlot(); if (cell.Type == Droppable.CellType.TrashBin) { cellSlot.ClearActions(); } else if (Inventory.ContainerOpen || BaseShopUI.isOpen || CookingEntity.Open) { cellSlot.SetSelfAction(openBagSlotAction); } else { cellSlot.SetUseAction(); } }
private void SetAction(Droppable cell) { cell.GetSlot().SetSelfAction(Inventory.PlaceOnBag); }