public void setVRState(VRState V) { if (VR != VRState.Disconnected) { VR = V; } }
private void Update() { if (IsOpen && IsRotate) { RotaSpeed += 0.05f; WaiQuan.Rotate(Vector3.forward * RotaSpeed); Center.Rotate(Vector3.forward * RotaSpeed); NeiQuan.Rotate(Vector3.back * RotaSpeed); image.fillAmount += 0.003f; if (image.fillAmount >= 1) { VRState.PanelSwitch(PanelName.MenuPanel); SphereControl.Instance.SetSkyBox(SphereControl.Instance.SkyboxTexture[0]); } } }
void ControlPawn() { if (m == Mode.ShootMode) { PV.RunValidation(); if (VR == VRState.Overview) { //Set VR Camera Active //Set Player Cam inactive VR = VRState.InPawn; } else { if (Input.GetKey(KeyCode.Q)) { ControlledPawn.LookAtPawn(TargetPawn); } } } else if (m == Mode.MoveMode) { float x = 0f; float z = 0f; if (Input.GetKey(KeyCode.W)) { x -= speed; } if (Input.GetKey(KeyCode.A)) { z -= speed; } if (Input.GetKey(KeyCode.S)) { x += speed; } if (Input.GetKey(KeyCode.D)) { z += speed; } PV.RunValidation(x, z); } }