public override void BindCells(bool flag) { TriCell k = Location; int elev = k.Elevation; TriDirection tDir = EntranceDirection.Previous(); for (int i = 0; i < 6; i++) { if (!k) { break; } k.Statics = flag?this:null; k = k.GetNeighbor(tDir); tDir = tDir.Next(); } }
public ChamberPlacement(RandomGen randomGen, Chamber chamberPrefab, Direction entranceDirection) : this(randomGen, chamberPrefab) { _rotation = EntranceDirection.GetClockwiseRotation(entranceDirection); }