reclaiming focus when scene is repeated

This commit is contained in:
betalars 2023-07-19 13:54:36 +02:00
parent 1ceba08180
commit b44ccd84ef
1 changed files with 5 additions and 1 deletions

View File

@ -164,10 +164,14 @@ func _input(event:InputEvent):
State.take_stage(self, true)
get_tree().call_group("interactables", "collapse")
func play_scene(id: int):
func play_scene(id: int, _repeat):
if id == Scenes.id.YOUTH_DRAEVEN:
var rotation_tween = create_tween()
func scene_finished(_id, repeat: bool):
if repeat:
State.take_stage(self, true)
func _on_bed_enter(_body):
if not (crouched or on_crouch_cooldown):
$PlayerAnimationPlayer.queue("crouch")