using System; using Controller.Bicycle; using UnityEditor; using UnityEngine; using Valve.VR.InteractionSystem; namespace Routes { public class RouteManager : MonoBehaviour { public Route[] routes; public int selectedRoute; public int visibleLength = 3; public Transform bicycle; private void Awake() { for (int i = 0; i < routes.Length; i++) { routes[i].gameObject.SetActive(i == selectedRoute); } } } }