コード例 #1
0
        /// <summary>
        ///     Invokes all house generators.
        /// </summary>
        private void InvokeHouseGenerators()
        {
            HouseGenerator.ResetUsedAreas();

            HouseGenerator[] houseGenerators = this.GetComponentsInChildren <HouseGenerator>();

            foreach (HouseGenerator houseGenerator in houseGenerators)
            {
                houseGenerator.Invoke();
            }
        }
コード例 #2
0
 /// <summary>
 ///     Initializes the static properties of the <see cref="HouseGenerator"/> class.
 /// </summary>
 static HouseGenerator()
 {
     HouseGenerator.ResetUsedAreas();
 }