fix lives when not allowed
This commit is contained in:
parent
efc5826935
commit
18d8abf6f3
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ func _ready() -> void:
|
|||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not has_focus():
|
||||
return
|
||||
if Input.is_action_pressed("ui_left"):
|
||||
if cooldown <= 0.0:
|
||||
cooldown = delay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue