File size: 292 Bytes
b1e4a8e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
extends Area3D
var id := -1
func set_id(val):
id = val
$Label3D.text = "%s" % str(id)
func _on_waypoint_body_entered(body):
body = body as VehicleBody3D
if body:
GameManager.player_crossed_waypoint(body, id)
func _on_waypoint_body_exited(body):
body = body as VehicleBody3D
|