public NarrowSpace() { TotalWallPairsInTerrain = 1; // Initialise with a random value, ready for the first time the // terrain is generated. AffectedWall = (AffectedWall)generator.Next(2); }
/// <summary> /// Resets AffectedWall to another randomly-selected value, in /// preparation for the next time this terrain is generated. /// </summary> public void Reset() { AffectedWall = (AffectedWall)generator.Next(2); }