I have a chest that is supposed to display either player inventory or the chest’s inventory. The first menu has buttons to choose which of the inventories to display, when I click the buttons, it stays on the same screen, but I put a debug.log in each of them and the both get called when I click the button for them. Unless I made a stupid mistake, the menu system isn’t the problem, I’ve been using it for months. I don’t know what is though. I would really appreciate some help with this, it’s driving me crazy.
Here is the chest script: Chest.cs - Pastebin.com
Here is the inventory script that it relies on: Inventory.cs - Pastebin.com
And here is the item script that they both rely on: Items.cs - Pastebin.com
The places to look in the chest script are InvChest() and InvMine()
Also, sorry for posting whole scripts, I just don’t know where the problem is being caused from.