Esempio n. 1
0
        //-------------------------------------------------
        void Start()
        {
            teleportMarkers = GameObject.FindObjectsOfType <TeleportMarkerBase>();

            HidePointer();

            _steamVrPlayer = InteractionSystem.SteamVR_Player.instance;

            if (_steamVrPlayer == null)
            {
                Debug.LogError("<b>[SteamVR Interaction]</b> Teleport: No Player instance found in map.");
                Destroy(this.gameObject);
                return;
            }

            CheckForSpawnPoint();

            //Invoke( "ShowTeleportHint", 5.0f );
        }
        //-------------------------------------------------
        private IEnumerator Start()
        {
            _instance = this;

            while (SteamVR.initializedState == SteamVR.InitializedStates.None || SteamVR.initializedState == SteamVR.InitializedStates.Initializing)
            {
                yield return(null);
            }

            if (SteamVR.instance != null)
            {
                ActivateRig(rigSteamVR);
            }
            else
            {
#if !HIDE_DEBUG_UI
                ActivateRig(rig2DFallback);
#endif
            }
        }
Esempio n. 3
0
 //-------------------------------------------------
 void Start()
 {
     _steamVrPlayer = SteamVR_Player.instance;
 }