Exemplo n.º 1
0
 public void Release()
 {
     Cleanup();
     targetHand = SDK_BaseController.ControllerHand.None;
     transform.SetParent(ComposeVRManager.Instance.transform);
     NoteSelectorHide.Raise();
 }
Exemplo n.º 2
0
        public bool Request(SDK_BaseController.ControllerHand hand, int initialNote)
        {
            if (targetHand != SDK_BaseController.ControllerHand.None)
            {
                return(false);
            }

            targetHand = hand;

            if (targetHand == SDK_BaseController.ControllerHand.Left)
            {
                selectorFrame.transform.position           = leftHandFrame.position;
                selectorFrame.transform.rotation           = leftHandFrame.rotation;
                noteDisplay.transform.parent.localRotation = Quaternion.Euler(0, 0, 180);
                noteDisplay.transform.localRotation        = Quaternion.Euler(0, 180, 0);
            }
            else
            {
                selectorFrame.transform.position           = rightHandFrame.position;
                selectorFrame.transform.rotation           = rightHandFrame.rotation;
                noteDisplay.transform.parent.localRotation = Quaternion.Euler(0, 0, 0);
                noteDisplay.transform.localRotation        = Quaternion.Euler(0, 180, 0);
            }

            Init(initialNote);
            NoteSelectorShow.Raise();
            return(true);
        }
Exemplo n.º 3
0
        void OnModeChange(object sender, ControllerInteractionEventArgs e)
        {
            PlayMode = !PlayMode;

            if (PlayMode)
            {
                PlayModeEntered.Raise();
                HideMenu();
            }
            else
            {
                PlayModeExited.Raise();
                ShowMenu();
            }
        }