// player이동 로직 void MoveCamTr(SteamVR_Input_Sources hand) { Vector2 pos = SteamVR_Input._default.inActions.TouchPostion.GetAxis(hand); //터치패드 가운데 빼고 누르면 보는 방향으로 이동 if (pos.y <= 0.05 || pos.x >= 0.05 || pos.y <= -0.05f || pos.x <= -.05f) { headRaycast = FindObjectOfType <HeadRaycast>(); headRaycast.HeadRayCast_Find(); // headRaycast에 있는 함수를 실행 } }
void Start() { vr_Camera = GameObject.Find("VRCamera"); headRay = GameObject.Find("VRCamera").GetComponent <HeadRaycast>(); }