Heads up - I'm not very experienced with Unity, and haven't coded in C# before. (I have some experience in Python)
I'm trying to create an app that requires small packets to be sent from a smartphone to a Raspberry Pi. In order to do this, I'm using OSC - or Open Sound Control. I have the Raspberry Pi setup to listen for messages, just having trouble with Unity.
I'm trying to send a packet of data whenever a button is pressed (and each button needs to send a different packet to identify which button has been pressed). I don't know how I can create a script that is activated with a button press.
Is there a way to make one script with a function that takes the button name as a parameter and then send that?
Thanks for the help, and if you need more information, please ask! Again - I don't have experience with this and I would appreciate a "lower experience level" explination. Thanks!