goalpost
This commit is contained in:
parent
e1b43c8bc5
commit
08712cf22c
11 changed files with 244 additions and 37 deletions
7
objects/goal_post.gd
Normal file
7
objects/goal_post.gd
Normal file
|
@ -0,0 +1,7 @@
|
|||
class_name GoalPost
|
||||
extends Node3D
|
||||
|
||||
|
||||
func _on_player_detector_body_entered(body: Node3D) -> void:
|
||||
if body is Player:
|
||||
body.enter_goal(self)
|
Loading…
Add table
Add a link
Reference in a new issue