I have one script that handles all dialogue and the dialogue choices in my game. But I’m pretty confused on how I’m supposed to check which button was pressed inside of a function. Here’s an image of how they’re arranged. The script itself is pretty simple because the entire game is based off “brain upgrades”.
An image which shows how the dialogue is handled inside of the script.
The best option to do is just before calling the function, you connect every single available choice buttons with a MouseButton1Click event, then when one of them fires, you know which one will fire.