save
This commit is contained in:
parent
ad95711535
commit
2e310f4053
25 changed files with 852 additions and 74 deletions
14
entities/checkpoint/checkpoint.gd
Normal file
14
entities/checkpoint/checkpoint.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends Area3D
|
||||
class_name CheckPoint
|
||||
@export var check_point_id : int = 0
|
||||
|
||||
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body is not Car:
|
||||
return
|
||||
|
||||
CheckPointManager.checkPointEnter(check_point_id)
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue