/// <summary> /// Invokes all house generators. /// </summary> private void InvokeHouseGenerators() { HouseGenerator.ResetUsedAreas(); HouseGenerator[] houseGenerators = this.GetComponentsInChildren <HouseGenerator>(); foreach (HouseGenerator houseGenerator in houseGenerators) { houseGenerator.Invoke(); } }
/// <summary> /// Initializes the static properties of the <see cref="HouseGenerator"/> class. /// </summary> static HouseGenerator() { HouseGenerator.ResetUsedAreas(); }