Basically, I am trying to make a script so that when the player presses ‘E’ it opens their inventory, but if the player is looking at merchant and they press ‘E’, then it opens a shop, which doesn’t sound that complicated, until you figure that if the shop is open and the player presses ‘E’ once again, then the shop should close, and then we introduce console controls and this all just becomes a huge mess. So, I’m wondering how I would organize all of this because there must be a better way to do this then having a bunch of if statements, right?