private void ChangeRoom() // Changes the lights and AoI depending on the room { // Disable all lights and gazeManagers foreach (var iLight in allLights) { iLight.Disable(); } foreach (var iGazeManager in allGazeManagers) { iGazeManager.Disable(); } switch (gameRoom) { case Rooms.Kitchen: // Set local variables currentLight = puzzle_1_KitchenLight; currentGazeManager = puzzle_1_KitchenGazeAwareManager; // Enable current light and gazeManagers currentLight.Enable(); currentGazeManager.Enable(); break; case Rooms.Office: // Set local variables currentLight = puzzle_2_OfficeLight; currentGazeManager = puzzle_2_OfficeGazeAwareManager; // Enable current light and gazeManagers currentLight.Enable(); currentGazeManager.Enable(); break; case Rooms.LivingRoom: // Set local variables currentLight = puzzle_3_LivingRoomLight; currentGazeManager = puzzle_3_LivingRoomGazeAwareManager; // Enable current light and gazeManagers currentLight.Enable(); currentGazeManager.Enable(); break; case Rooms.Entrance: // Set local variables currentLight = entranceLight; currentGazeManager = entranceGazeAwareManager; // Enable current light and gazeManagers currentLight.Enable(); currentGazeManager.Enable(); break; case Rooms.HallwayMid: // Set local variables currentLight = hallway_1_MidLight; currentGazeManager = hallway_1_MidGazeAwareManager; // Enable current light and gazeManagers currentLight.Enable(); currentGazeManager.Enable(); break; case Rooms.HallwayEnd: // Set local variables currentLight = hallway_2_EndLight; currentGazeManager = hallway_2_EndGazeAwareManager; // Enable current light and gazeManagers currentLight.Enable(); currentGazeManager.Enable(); break; } }