Ejemplo n.º 1
0
        private IEnumerator Start()
        {
            _instance = this;
            player    = InteractionSystem.Player.instance;

            while (SteamVR.initializedState == SteamVR.InitializedStates.None || SteamVR.initializedState == SteamVR.InitializedStates.Initializing)
            {
                yield return(null);
            }
        }
Ejemplo n.º 2
0
 void Update()
 {
     if (allowDebug)
     {
         DebugController instance = DebugController.instance;
         if (instance != null)
         {
             GetComponent <MeshRenderer>().enabled = active && instance.active;
         }
         else
         {
             Debug.LogWarning("could not find debug controller.");
             GetComponent <MeshRenderer>().enabled = false;
         }
     }
 }