11 lines
216 B
GDScript
11 lines
216 B
GDScript
class_name GoalPost
|
|
extends Node3D
|
|
|
|
|
|
@export var win_confetti: GPUParticles3D
|
|
|
|
|
|
func _on_player_detector_body_entered(body: Node3D) -> void:
|
|
if body is Player:
|
|
body.enter_goal(self)
|
|
win_confetti.emitting = true
|