ucg-3d/objects/goal_post.gd
2025-02-22 19:55:12 -05:00

7 lines
142 B
GDScript

class_name GoalPost
extends Node3D
func _on_player_detector_body_entered(body: Node3D) -> void:
if body is Player:
body.enter_goal(self)