示例#1
0
        protected override IEnumerator CreateMapMeshes(MeshGenerator meshGenerator)
        {
            GameObject sector = CreateSector(meshGenerator.index);

            yield return(null);

            Mesh ceilingMesh = CreateCeiling(meshGenerator, sector, ceilingMaterial);

            yield return(null);

            Mesh wallMesh = CreateWall(meshGenerator, sector, wallMaterial);

            yield return(null);

            Mesh floorMesh = CreateFloor(meshGenerator, sector, floorMaterial);

            GeneratedMeshes.Add(new MapMeshes(ceilingMesh, wallMesh, floorMesh));
        }