public PlaneParams(OpeningStyle openingStyle, Vector2Int color, Vector3Int baseObjSize, Vector3 frameFinalSize, float depthOffset) { this.openingStyle = openingStyle; this.color = color; this.baseObjSize = baseObjSize; finalPos = GetFinalPos(frameFinalSize, depthOffset); finalRot = GetFinalRot(); }
OpeningStyle GetOpeningStyle(BuildingParams buildingParams) { if (buildingParams.onlySquareOpenings) { return(OpeningStyle.SQUARE); } else if (buildingParams.onlyArchedOpenings) { return(OpeningStyle.ARCH); } OpeningStyle openingStyle = (OpeningStyle)Random.Range(0, 2); return(openingStyle); }