Determining Door Side of Primary Hallway
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/06/panic_button_press.gif?resize=160%2C118&ssl=1)
D40 #PanicRoom
R2D10 #100DaysOfCode
R2D05 #100DaysOfGameDev
By comparing the two sides of the Primary Hallway split by the Secondary Hallway to see which is bigger, I was able to code which end would be considered the external entrance by going with the bigger section.
While not a particularly ground-breaking addition to the game, it is one I wanted to have included so that there will ultimately be only two entrances into the Panic Room house: one in the Hallway, and the other at the exterior end of the Secondary Hallway.
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/06/2020-06-17_Unity_door_side_primary_hallway.png?resize=310%2C227&ssl=1)