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