Esempio n. 1
0
        void ShowLaserPointer(SteamVR_Action_Boolean action, SteamVR_Input_Sources source)
        {
            if (teleportationManager == null)
            {
                teleportationManager = FindObjectOfType <AgentVRTeleportationManager>();
            }

            teleportationManager.TallRayPointer(controllerPose);
        }
Esempio n. 2
0
        void Teleport(SteamVR_Action_Boolean action, SteamVR_Input_Sources source)
        {
            if (teleportationManager == null)
            {
                teleportationManager = FindObjectOfType <AgentVRTeleportationManager>();
            }

            teleportationManager.TryTeleporting();
        }
Esempio n. 3
0
 private void Awake()
 {
     manager    = GetComponent <AgentVRTeleportationManager>();
     playerHead = manager.playerHead;
 }