// Start is called before the first frame update void Start() { waypoints = waveConfig.GetWaypoints(); moveSpeed = waveConfig.GetMovementSpeed(); transform.position = waypoints[waypointIndex].transform.position; }