That's cool. I used the same logic with the axes to check the side facing up in my game. I used the forward axis of the object and checked it with the global forward axis and mapped them to the sides.