handle primary action inputs
This commit is contained in:
parent
635a832ec8
commit
8708540770
5 changed files with 7 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ public partial class DroppableItem : Area2D
|
|||
{
|
||||
if (@event.IsActionPressed("primary_action"))
|
||||
{
|
||||
GetViewport().SetInputAsHandled();
|
||||
PickUp();
|
||||
EmitSignal(SignalName.PickedUp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue