Removed duplicate code

This commit is contained in:
2026-02-07 23:21:38 +03:00
parent 230f39cf54
commit 39cd68432e
5 changed files with 20 additions and 26 deletions
@@ -10,7 +10,13 @@ func enter() -> void:
func physics_process(delta: float) -> void:
_move_down_and_check_floor(delta)
func _move_down_and_check_floor(delta: float) -> bool:
cultist.velocity += cultist.get_gravity() * delta
cultist.move_and_slide()
if cultist.is_on_floor():
switch_state.emit(look_around_state)
return true
return false