1
0

RouteManager.cs 529 B

123456789101112131415161718192021222324
  1. using System;
  2. using Controller.Bicycle;
  3. using UnityEditor;
  4. using UnityEngine;
  5. using Valve.VR.InteractionSystem;
  6. namespace Routes
  7. {
  8. public class RouteManager : MonoBehaviour
  9. {
  10. public Route[] routes;
  11. public int selectedRoute;
  12. public int visibleLength = 3;
  13. public Transform bicycle;
  14. private void Awake()
  15. {
  16. for (int i = 0; i < routes.Length; i++)
  17. {
  18. routes[i].gameObject.SetActive(i == selectedRoute);
  19. }
  20. }
  21. }
  22. }