handle primary action inputs
This commit is contained in:
parent
7455c27846
commit
13c7add613
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