extends Spatial signal level_completed() func _on_GOAL_body_entered(body): if body is Player: emit_signal("level_completed") func _on_GOAL_body_exited(body): if body is Player: emit_signal("level_completed") Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)