File size: 176 Bytes
b1e4a8e
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
extends Node3D

func _ready():
	var i = 0
	for child in get_children():
		child.set_id(i)
		i += 1
	
	GameManager.n_waypoints = get_child_count()
	GameManager.waypoints = self