public void OnZoom(InputAction.CallbackContext context) { if (context.phase != InputActionPhase.Started) { return; } var scrollValue = context.action.ReadValue <float>(); if (faceMapPanel.isDragging) { faceMapPanel.ScaleUp(scrollValue, 0.1f, 0.1f, 10.0f); } else if (movesPanel.isDragging) { movesPanel.ScaleUp(scrollValue, 0.1f, 0.1f, 10.0f); } else if (controlsPanel.isDragging) { controlsPanel.ScaleUp(scrollValue, 0.1f, 0.1f, 10.0f); } else if (mouseManager.isFaceMapPanelTop) { faceMapPanel.ScaleUp(scrollValue, 0.1f, 0.1f, 10.0f); } else if (mouseManager.isMovesPanelTop) { movesPanel.ScaleUp(scrollValue, 0.1f, 0.1f, 10.0f); } else if (mouseManager.isControlsPanelTop) { controlsPanel.ScaleUp(scrollValue, 0.1f, 0.1f, 10.0f); } else if (mouseManager.isCubeHit) { myCube.ScaleUp(scrollValue, 0.05f, 0.05f, 2.0f); } }