void HandleTouchpad_ControlPortal_PressDown(TouchpadDirection touchpadDirection) { switch (touchpadDirection) { case TouchpadDirection.Up: PortalScript.ResetPortalPosition(); break; case TouchpadDirection.Down: dartGenerator.DestroyObjs(); break; } }
void HandleTouchpad(ButtonStage buttonStage, Vector2 axis) { switch (buttonStage) { case ButtonStage.PressDown: TouchpadDirection touchpadDirection = ViveSR_Experience_ControllerDelegate.GetTouchpadDirection(axis, true); switch (touchpadDirection) { case TouchpadDirection.Up: PortalScript.ResetPortalPosition(); break; case TouchpadDirection.Down: dartGeneratorMgr.DestroyObjs(); break; } break; } }