Ejemplo n.º 1
0
 private void OnMenuUnpress(ActionsController.ButtonPress ev)
 {
     if (Time.time - menuPressTime < menuButtonReleaseTimeout)
     {
         Back();
     }
 }
        private void OnMenuUnpress(ActionsController.ButtonPress ev)
        {
            switch (ev.hand)
            {
            case ActionsController.Hand.Left:
                leftMenuPressed = false;
                break;

            case ActionsController.Hand.Right:
                rightMenuPressed = false;
                break;
            }

            StopAllCoroutines();
        }
        private void OnMenuPress(ActionsController.ButtonPress ev)
        {
            switch (ev.hand)
            {
            case ActionsController.Hand.Left:
                leftMenuPressed = true;
                break;

            case ActionsController.Hand.Right:
                rightMenuPressed = true;
                break;
            }

            if (leftMenuPressed && rightMenuPressed)
            {
                StartCoroutine(HoldingMenuButtons());
            }
        }
Ejemplo n.º 4
0
 private void OnMenuPress(ActionsController.ButtonPress ev)
 {
     menuPressTime = Time.time;
 }