Fixed double-crouching

This commit is contained in:
Rendo 2025-12-03 23:57:09 +05:00
commit c1548e5451
5 changed files with 12 additions and 15 deletions

View file

@ -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)