protected void Awake()
{
foreach (var wall in walls)
{
if (wall.transform == null || wall.mesh == null) continue;
wall.attachedObjects = new WallTransformCache[wall.moveWithRoom.Length];
for (var i = 0; i < wall.moveWithRoom.Length; i++)
{
var moveWithRoom = wall.moveWithRoom[i];
if(moveWithRoom == null) continue;
var attachedObject = new WallTransformCache();
attachedObject.transform = moveWithRoom;
attachedObject.initLocalPos = moveWithRoom.localPosition;
wall.attachedObjects[i] = attachedObject;
}
}
growTimer = growTime;
}