[Interactions] Make combinable object pickup-able and swappable
This commit is contained in:
@@ -17,9 +17,9 @@ public class CombineWithBehavior : InteractionRequirementBase
|
||||
var pickup = GetComponent<Pickup>();
|
||||
if (heldItem == null)
|
||||
{
|
||||
DebugUIMessage.Show("You need an item to combine.");
|
||||
// DebugUIMessage.Show("You need an item to combine.");
|
||||
OnFailure?.Invoke();
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
if (pickup == null || pickup.itemData == null)
|
||||
{
|
||||
@@ -40,9 +40,9 @@ public class CombineWithBehavior : InteractionRequirementBase
|
||||
{
|
||||
string heldName = heldItem.itemName ?? "an item";
|
||||
string targetName = pickup.itemData.itemName ?? "target item";
|
||||
DebugUIMessage.Show($"Cannot combine {heldName} with {targetName}.");
|
||||
// DebugUIMessage.Show($"Cannot combine {heldName} with {targetName}.");
|
||||
OnFailure?.Invoke();
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user