コード例 #1
0
 public SubsectorMeshComponents(SubsectorPlane plane, SectorPlane sectorPlane,
                                List <Seg2F> edges, GameObject gameObject)
 {
     subsectorPlane = plane;
     texture        = TextureManager.Texture(plane.SectorPlane.TextureName, ResourceNamespace.Flats);
     Mesh           = CreateMesh(sectorPlane, edges, texture);
     Filter         = CreateFilter(gameObject);
     Renderer       = CreateRenderer(gameObject);
     Collider       = CreateCollider(gameObject, edges);
 }
コード例 #2
0
ファイル: Subsector.cs プロジェクト: WChrisK/HelionUnity
        public Subsector(int index, Sector sector, SubsectorPlane floor, SubsectorPlane ceiling)
        {
            Index           = index;
            Sector          = sector;
            SubsectorPlanes = new List <SubsectorPlane> {
                floor, ceiling
            };

            floor.Subsector   = this;
            ceiling.Subsector = this;
            sector.Subsectors.Add(this);
        }