Exemple #1
0
 IEnumerator ResetPanelPos()
 {
     while (isTouchpadDown)
     {
         DepthControlScript.ResetPanelPos();
         yield return(new WaitForEndOfFrame());
     }
 }
 void HandleTouchpad(ButtonStage buttonStage, Vector2 axis)
 {
     switch (buttonStage)
     {
     case ButtonStage.Press:
         DepthControlScript.ResetPanelPos();
         break;
     }
 }
Exemple #3
0
        protected override void AwakeToDo()
        {
            DepthControlScript = ViveSR_Experience_Demo.instance.DepthControlScript;

            DepthControlScript.ResetPanelPos();
        }