15 lines
282 B
GDScript
15 lines
282 B
GDScript
extends Area3D
|
|
class_name CheckPoint
|
|
@export var check_point_id : int = 0
|
|
@onready var check_point_manager: Node = $"../../CheckPointManager"
|
|
|
|
|
|
|
|
func _on_body_entered(body: Node3D) -> void:
|
|
if body is not Car:
|
|
return
|
|
|
|
check_point_manager.checkPointEnter(check_point_id)
|
|
|
|
|
|
|