Added Interact system with a raycast
This commit is contained in:
10
Assets/scripts/vape.gd
Normal file
10
Assets/scripts/vape.gd
Normal file
@ -0,0 +1,10 @@
|
||||
class_name Interactable
|
||||
extends Node3D
|
||||
|
||||
@export var promt_message:String
|
||||
@export var promt_key:String
|
||||
|
||||
|
||||
func interact(player):
|
||||
print("vape picked up")
|
||||
get_parent().get_parent().queue_free()
|
||||
Reference in New Issue
Block a user