public void SetupForCutting() { MiterGauge.HideMiterGauge(); currentSpawnPoint = FromSawSpawnPoint; if (previousAction == ActionState.None || previousAction == ActionState.UsingRuler || currentAction == ActionState.UsingRuler) { AvailableWoodMaterial[currentPieceIndex].transform.rotation = Quaternion.Euler(0.0f, 90.0f, 0.0f); PlacePiece(); orbitCamera.EnableZoom = true; orbitCamera.EnableOrbit = true; orbitCamera.EnableCollision = true; orbitCamera.EnableAngleClamp = true; orbitCamera.LookAtPoint = CameraSawLookAtPoint; orbitCamera.ChangeAngle(45.0f, 0.0f); orbitCamera.ChangeDistanceConstraints(1.5f, 0.5f, 2.0f); } SawBlade.TurnOff(); SawBlade.BladeCollider.convex = true; EnableCurrentBoardMovement(true); RestrictCurrentBoardMovement(false, false); SwitchAction(ActionState.OnSaw); UI_Manager.ChangeSawButtons(false); GameRuler.SetActive(false); CutGameplay.enabled = true; BladeControl.Moveable = false; }
public void ActivatePieceSnapping() { GameCamera.transform.position = CameraStartingPosition.position; cameraControl.LookAtPoint = CameraLookAt; cameraControl.Distance = 1.0f; cameraControl.ChangeAngle(0f, 0f); cameraControl.EnableZoom = true; PieceSnapping.enabled = true; }