void Awake() { if (!Application.isPlaying && !initialized) { leftWall = new RoomWall("Left Wall", this); rightWall = new RoomWall("Right Wall", this); frontWall = new RoomWall("Front Wall", this); rearWall = new RoomWall("Rear Wall", this); floor = new RoomWall("Floor", this); roof = new RoomWall("Roof", this); material = leftWall.Material; initialized = true; UpdateDimensions(); } }