Added state component
This commit is contained in:
@ -26,9 +26,6 @@ func _unhandled_input(event):
|
||||
|
||||
if event.is_action_pressed("jump") && movement && movement.can_jump():
|
||||
player.jump()
|
||||
|
||||
if event.is_action_pressed("dash"):
|
||||
player.dash()
|
||||
|
||||
for i in range(4):
|
||||
if event.is_action_pressed("skill_%d" % (i + 1)):
|
||||
|
Reference in New Issue
Block a user