void ShowLaserPointer(SteamVR_Action_Boolean action, SteamVR_Input_Sources source) { if (teleportationManager == null) { teleportationManager = FindObjectOfType <AgentVRTeleportationManager>(); } teleportationManager.TallRayPointer(controllerPose); }
void Teleport(SteamVR_Action_Boolean action, SteamVR_Input_Sources source) { if (teleportationManager == null) { teleportationManager = FindObjectOfType <AgentVRTeleportationManager>(); } teleportationManager.TryTeleporting(); }
private void Awake() { manager = GetComponent <AgentVRTeleportationManager>(); playerHead = manager.playerHead; }