reclaiming focus when scene is repeated
This commit is contained in:
parent
1ceba08180
commit
b44ccd84ef
|
|
@ -164,10 +164,14 @@ func _input(event:InputEvent):
|
||||||
State.take_stage(self, true)
|
State.take_stage(self, true)
|
||||||
get_tree().call_group("interactables", "collapse")
|
get_tree().call_group("interactables", "collapse")
|
||||||
|
|
||||||
func play_scene(id: int):
|
func play_scene(id: int, _repeat):
|
||||||
if id == Scenes.id.YOUTH_DRAEVEN:
|
if id == Scenes.id.YOUTH_DRAEVEN:
|
||||||
var rotation_tween = create_tween()
|
var rotation_tween = create_tween()
|
||||||
|
|
||||||
|
func scene_finished(_id, repeat: bool):
|
||||||
|
if repeat:
|
||||||
|
State.take_stage(self, true)
|
||||||
|
|
||||||
func _on_bed_enter(_body):
|
func _on_bed_enter(_body):
|
||||||
if not (crouched or on_crouch_cooldown):
|
if not (crouched or on_crouch_cooldown):
|
||||||
$PlayerAnimationPlayer.queue("crouch")
|
$PlayerAnimationPlayer.queue("crouch")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue