private void Start() { scrollbar.onValueChanged.AddListener((float val) => ChangeValue(val)); _roadMeshCreator = GetComponent <RoadMeshCreator>(); GenerateNewPath(); }