Fixed double-crouching
This commit is contained in:
parent
dc472515c4
commit
c1548e5451
5 changed files with 12 additions and 15 deletions
|
|
@ -17,10 +17,6 @@ func enter() -> void:
|
|||
player_input.jumped.connect(on_jumped)
|
||||
player_input.crouch_begin.connect(begin_crouch)
|
||||
player_input.walk_begin.connect(begin_walk)
|
||||
if player_input.compressed_states & PlayerInput.CROUCH:
|
||||
begin_crouch()
|
||||
elif player_input.compressed_states & PlayerInput.WALK:
|
||||
begin_walk()
|
||||
|
||||
func exit() -> void:
|
||||
player_input.jumped.disconnect(on_jumped)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue