Removed duplicate code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user