imprioving stage complience for player
This commit is contained in:
parent
3a295c3887
commit
09fa3f65bc
|
|
@ -74,7 +74,7 @@ func _process(_delta):
|
|||
emit_signal("ui_entered")
|
||||
has_entered = true
|
||||
|
||||
if has_entered:
|
||||
if has_entered and has_stage:
|
||||
if focus_ray.get_collider() == null:
|
||||
emit_signal("ui_exited")
|
||||
has_entered = false
|
||||
|
|
@ -163,6 +163,10 @@ func _input(event:InputEvent):
|
|||
if !Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
||||
State.take_stage(self, true)
|
||||
|
||||
func play_scene(id: int):
|
||||
if id == Scenes.id.YOUTH_DRAEVEN:
|
||||
var rotation_tween = create_tween()
|
||||
|
||||
func _on_bed_enter(_body):
|
||||
if not (crouched or on_crouch_cooldown):
|
||||
$PlayerAnimationPlayer.queue("crouch")
|
||||
|
|
|
|||
Loading…
Reference in New Issue