/************************************************************************************************/ private void RotateLayerClockwise(int layer, RubiksCubeModel fullCubeModel) { for (var x = 0; x < 3; x++) { for (var y = 0; y < 3; y++) { fullCubeModel.GetRubiksCubeBlock(x, y, layer).RotateCube(Vector3.zero, Vector3.up, fullCubeController.GetRotationDegree() * Time.deltaTime); } } }