Anri/AdBlockNot
Archived
1
0
Fork 0
This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
AdBlockNot/scripts/PlayerInteraction.gd
2024-01-28 17:16:49 +01:00

11 lines
345 B
GDScript

extends RayCast3D
@onready var prompt := $Label
func _physics_process(_delta):
prompt.set_text("")
if is_colliding():
if get_collider() is Interactable:
prompt.set_text("Regarder un film sur www3.yggtorrent.qa")
if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
get_tree().change_scene_to_file("res://scenes/menu/go_in.tscn")