Minor changes
This commit is contained in:
@ -3,7 +3,7 @@ extends Controller
|
||||
|
||||
var move: Vector2
|
||||
|
||||
func _unhandled_input(_event):
|
||||
func _unhandled_input(event):
|
||||
if Global.interacting_with_ui:
|
||||
return
|
||||
|
||||
@ -12,11 +12,11 @@ func _unhandled_input(_event):
|
||||
character.direction.y = 0
|
||||
character.direction = character.direction.normalized()
|
||||
|
||||
if Input.is_action_just_pressed("jump"):
|
||||
if event.is_action_pressed("jump"):
|
||||
character.jump()
|
||||
|
||||
if Input.is_action_just_pressed("dash"):
|
||||
if event.is_action_pressed("dash"):
|
||||
character.dash()
|
||||
|
||||
if Input.is_action_just_pressed("attack"):
|
||||
if event.is_action_pressed("attack"):
|
||||
character.attack()
|
||||
|
Reference in New Issue
Block a user