174 {
175 if (wallID == 16)
176 {
177 if (northWall != null && !northWall.iAmBoundaryWall)
178 {
179 if (northWall.siblingWall != null)
180 {
181 Destroy(northWall.siblingWall);
182 }
183 northWall.Destroy();
184 }
185
186 if (eastWall != null && !eastWall.iAmBoundaryWall)
187 {
188 if (eastWall.siblingWall != null)
189 {
190 Destroy(eastWall.siblingWall);
191 }
192 eastWall.Destroy();
193 }
194
195 if (southWall != null && !southWall.iAmBoundaryWall)
196 {
197 if (southWall.siblingWall != null)
198 {
199 Destroy(southWall.siblingWall);
200 }
201 southWall.Destroy();
202 }
203
204 if (westWall != null && !westWall.iAmBoundaryWall)
205 {
206 if (westWall.siblingWall != null)
207 {
208 Destroy(westWall.siblingWall);
209 }
210 westWall.Destroy();
211 }
212 }
213 else if (wallID == 1)
214 {
215 if (northWall != null && !northWall.iAmBoundaryWall)
216 {
217 if (northWall.siblingWall != null)
218 {
219 Destroy(northWall.siblingWall);
220 }
221 northWall.Destroy();
222 }
223 }
224 else if (wallID == 2)
225 {
226 if (eastWall != null && !eastWall.iAmBoundaryWall)
227 {
228 if (eastWall.siblingWall != null)
229 {
230 Destroy(eastWall.siblingWall);
231 }
232 eastWall.Destroy();
233 }
234 }
235 else if (wallID == 3)
236 {
237 if (southWall != null && !southWall.iAmBoundaryWall)
238 {
239 if (southWall.siblingWall != null)
240 {
241 Destroy(southWall.siblingWall);
242 }
243 southWall.Destroy();
244 }
245 }
246 else if (wallID == 4)
247 {
248
249 if (westWall != null && !westWall.iAmBoundaryWall)
250 {
251 if (westWall.siblingWall != null)
252 {
253 Destroy(westWall.siblingWall);
254 }
255 westWall.Destroy();
256 }
257 }
258 else if (wallID == 5)
259 {
260 if (northWall != null && !northWall.iAmBoundaryWall)
261 {
262 if (northWall.siblingWall != null)
263 {
264 Destroy(northWall.siblingWall);
265 }
266 northWall.Destroy();
267 }
268
269
270
271 if (westWall != null && !westWall.iAmBoundaryWall)
272 {
273 if (westWall.siblingWall != null)
274 {
275 Destroy(westWall.siblingWall);
276 }
277 westWall.Destroy();
278 }
279 }
280 else if (wallID == 6)
281 {
282 if (eastWall != null && !eastWall.iAmBoundaryWall)
283 {
284 if (eastWall.siblingWall != null)
285 {
286 Destroy(eastWall.siblingWall);
287 }
288 eastWall.Destroy();
289 }
290
291
292 if (southWall != null && !southWall.iAmBoundaryWall)
293 {
294 if (southWall.siblingWall != null)
295 {
296 Destroy(southWall.siblingWall);
297 }
298 southWall.Destroy();
299 }
300 }
301 else if (wallID == 7)
302 {
303 if (southWall != null && !southWall.iAmBoundaryWall)
304 {
305 if (southWall.siblingWall != null)
306 {
307 Destroy(southWall.siblingWall);
308 }
309 southWall.Destroy();
310 }
311
312
313
314 if (westWall != null && !westWall.iAmBoundaryWall)
315 {
316 if (westWall.siblingWall != null)
317 {
318 Destroy(westWall.siblingWall);
319 }
320 westWall.Destroy();
321 }
322 }
323 else if (wallID == 8)
324 {
325 if (northWall != null && !northWall.iAmBoundaryWall)
326 {
327 if (northWall.siblingWall != null)
328 {
329 Destroy(northWall.siblingWall);
330 }
331 northWall.Destroy();
332 }
333
334
335
336 if (eastWall != null && !eastWall.iAmBoundaryWall)
337 {
338 if (eastWall.siblingWall != null)
339 {
340 Destroy(eastWall.siblingWall);
341 }
342 eastWall.Destroy();
343 }
344
345 }
346 else if (wallID == 9)
347 {
348 if (eastWall != null && !eastWall.iAmBoundaryWall)
349 {
350 if (eastWall.siblingWall != null)
351 {
352 Destroy(eastWall.siblingWall);
353 }
354 eastWall.Destroy();
355 }
356
357
358
359 if (westWall != null && !westWall.iAmBoundaryWall)
360 {
361 if (westWall.siblingWall != null)
362 {
363 Destroy(westWall.siblingWall);
364 }
365 westWall.Destroy();
366 }
367 }
368 else if (wallID == 10)
369 {
370 if (northWall != null && !northWall.iAmBoundaryWall)
371 {
372 if (northWall.siblingWall != null)
373 {
374 Destroy(northWall.siblingWall);
375 }
376 northWall.Destroy();
377 }
378
379
380 if (southWall != null && !southWall.iAmBoundaryWall)
381 {
382 if (southWall.siblingWall != null)
383 {
384 Destroy(southWall.siblingWall);
385 }
386 southWall.Destroy();
387 }
388 }
389 else if (wallID == 11)
390 {
391 if (northWall != null && !northWall.iAmBoundaryWall)
392 {
393 if (northWall.siblingWall != null)
394 {
395 Destroy(northWall.siblingWall);
396 }
397 northWall.Destroy();
398 }
399
400 if (southWall != null && !southWall.iAmBoundaryWall)
401 {
402 if (southWall.siblingWall != null)
403 {
404 Destroy(southWall.siblingWall);
405 }
406 southWall.Destroy();
407 }
408
409 if (eastWall != null && !eastWall.iAmBoundaryWall)
410 {
411 if (eastWall.siblingWall != null)
412 {
413 Destroy(eastWall.siblingWall);
414 }
415 eastWall.Destroy();
416 }
417
418
419 }
420 else if (wallID == 12)
421 {
422 if (northWall != null && !northWall.iAmBoundaryWall)
423 {
424 if (northWall.siblingWall != null)
425 {
426 Destroy(northWall.siblingWall);
427 }
428 northWall.Destroy();
429 }
430
431
432 if (southWall != null && !southWall.iAmBoundaryWall)
433 {
434 if (southWall.siblingWall != null)
435 {
436 Destroy(southWall.siblingWall);
437 }
438 southWall.Destroy();
439 }
440
441
442 if (westWall != null && !westWall.iAmBoundaryWall)
443 {
444 if (westWall.siblingWall != null)
445 {
446 Destroy(westWall.siblingWall);
447 }
448 westWall.Destroy();
449 }
450 }
451 else if (wallID == 13)
452 {
453 if (southWall != null && !southWall.iAmBoundaryWall)
454 {
455 if (southWall.siblingWall != null)
456 {
457 Destroy(southWall.siblingWall);
458 }
459 southWall.Destroy();
460 }
461
462 if (eastWall != null && !eastWall.iAmBoundaryWall)
463 {
464 if (eastWall.siblingWall != null)
465 {
466 Destroy(eastWall.siblingWall);
467 }
468 eastWall.Destroy();
469 }
470
471
472
473 if (westWall != null && !westWall.iAmBoundaryWall)
474 {
475 if (westWall.siblingWall != null)
476 {
477 Destroy(westWall.siblingWall);
478 }
479 westWall.Destroy();
480 }
481 }
482 else if (wallID == 14)
483 {
484 if (northWall != null && !northWall.iAmBoundaryWall)
485 {
486 if (northWall.siblingWall != null)
487 {
488 Destroy(northWall.siblingWall);
489 }
490 northWall.Destroy();
491 }
492
493
494
495 if (westWall != null && !westWall.iAmBoundaryWall)
496 {
497 if (westWall.siblingWall != null)
498 {
499 Destroy(westWall.siblingWall);
500 }
501 westWall.Destroy();
502 }
503
504
505 if (eastWall != null && !eastWall.iAmBoundaryWall)
506 {
507 if (eastWall.siblingWall != null)
508 {
509 Destroy(eastWall.siblingWall);
510 }
511 eastWall.Destroy();
512 }
513
514
515 }
516 else if (wallID == 15)
517 {
518 if (roomFloor != null)
519 {
520 roomFloor.gameObject.gameObject.SetActive(false);
521 }
522 }
523 else { return; }
524
525
526 }