Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
    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);
    }