credit
This commit is contained in:
@@ -12,6 +12,8 @@ extends StaticBody3D
|
||||
|
||||
@onready var label: Label = $Sprite3D/SubViewport/Label
|
||||
|
||||
@onready var sprite_e: Sprite3D = $Sprite3DE
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
setup_color_and_name()
|
||||
@@ -53,3 +55,13 @@ func _reset():
|
||||
creme_myrtille.visible = false
|
||||
meringue.visible = false
|
||||
croisillon.visible = false
|
||||
|
||||
|
||||
func _on_area_3e_body_entered(body: Node3D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
sprite_e.visible = true
|
||||
|
||||
|
||||
func _on_area_3e_body_exited(body: Node3D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
sprite_e.visible = false
|
||||
|
||||
Reference in New Issue
Block a user