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