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

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

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