Anri/AdBlockNot
Archived
1
0
Fork 0
This commit is contained in:
Mylloon 2024-01-28 10:41:08 +01:00
parent 93b7f1c39c
commit bf55dcac65
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 82 additions and 46 deletions

2
scripts/Desktop.gd Normal file
View file

@ -0,0 +1,2 @@
class_name Interactable
extends StaticBody3D

View file

@ -0,0 +1,11 @@
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")