Simplifying function that saves a variable
Is there a better way to do this? I have buttons on my canvas that when pressed, send the string of their device name to the DeviceSelect method. I do this to save the variable which will be used later on but I am assuming there is a better way to do this. (Sorry if this is a noob question, I am very new to unity and coding and I am trying to learn) :)
72121bf72f0bd330b9e5f899d9c7973e.png
(3.4 kB)
Comment
Your answer
