| | |
| | | public Scene() |
| | | { |
| | | sid = NewSid(); |
| | | if (!string.IsNullOrEmpty(DB_ResidenceData.residenceData.HomeGateway.gatewayId)) |
| | | if (DB_ResidenceData.residenceData.HomeGateway !=null && !string.IsNullOrEmpty(DB_ResidenceData.residenceData.HomeGateway.gatewayId)) |
| | | { |
| | | gatewayId = DB_ResidenceData.residenceData.HomeGateway.gatewayId; |
| | | } |
| | |
| | | string roomNameList = ""; |
| | | foreach (var roomId in roomIds) |
| | | { |
| | | var findRoom = DB_ResidenceData.residenceData.Rooms.Find(obj => obj.roomId == roomId); |
| | | var findRoom = SpatialInfo.CurrentSpatial.RoomList.Find(obj => obj.roomId == roomId); |
| | | if (findRoom == null) |
| | | { |
| | | continue; |