10 lines
281 B
GDScript
10 lines
281 B
GDScript
extends Area3D
|
|
|
|
func _on_body_entered(body: Node3D) -> void:
|
|
if body is not Player:
|
|
return
|
|
|
|
Player.Instance.cameraController.process_mode = Node.PROCESS_MODE_PAUSABLE
|
|
get_tree().paused = true
|
|
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
|
Player.Instance.ui.displayComplete()
|