OVRMonoscopic.cs 376 B

123456789101112131415161718
  1. using System;
  2. using UnityEngine;
  3. public class OVRMonoscopic : MonoBehaviour
  4. {
  5. private void Update()
  6. {
  7. if (OVRInput.GetDown(this.toggleButton, OVRInput.Controller.Active))
  8. {
  9. this.monoscopic = !this.monoscopic;
  10. OVRManager.instance.monoscopic = this.monoscopic;
  11. }
  12. }
  13. public OVRInput.RawButton toggleButton = OVRInput.RawButton.B;
  14. private bool monoscopic;
  15. }