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