winning confetti
This commit is contained in:
parent
cc177f7beb
commit
fd3facb076
3 changed files with 71 additions and 2 deletions
|
@ -2,6 +2,10 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue