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

12 lines
345 B
GDScript3
Raw Normal View History

2024-01-28 10:41:08 +01:00
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")