This commit is contained in:
Gerard Gascón 2025-04-24 17:23:34 +02:00
commit b99855351d
434 changed files with 50357 additions and 0 deletions

27
scripts/npc/pickup.gd Normal file
View file

@ -0,0 +1,27 @@
extends CharacterBody3D
@export var text: Resource
@export var photo_index: int = 0
@export var animation_payer: AnimationPlayer
func _ready():
animation_payer.play("photo_hover")
func pointing(point: bool):
if point:
animation_payer.play("photo_point", 1)
else:
animation_payer.play("photo_hover", 1)
func get_text() -> Resource:
return text;
func destroy():
queue_free()
func is_photo():
return true
func get_photo_index():
return photo_index