void checkParaWall() { if (paraWallFound) { if (!checkWall(discRaysDirections[savedRayIndex], savedRaySign)) { paraWallFound = false; mainCamera.onParallelWalls(Vector3.zero, false); } } else { for (int a = 0; a < discCastNum; a++) { if (checkWall(discRaysDirections[a], 1)) { paraWallFound = true; savedRaySign = 1; savedRayIndex = a; mainCamera.onParallelWalls(calcParaWallDirection(savedPoint, hit.point), true); break; } else { if (checkWall(discRaysDirections[a], -1)) { paraWallFound = true; savedRaySign = -1; savedRayIndex = a; mainCamera.onParallelWalls(calcParaWallDirection(savedPoint, hit.point), true); break; } } } } }