mack
✅ array of methods
imagine the buttons as essentially a calculator for now. button 1 always adds 2 to whatever integer is passed through its method. button 2 always halves the integer passed through. there are ways around the methods with more than one parameter, but i do want one, at least
13 replies
✅ array of methods
(working in unity)
i dont have the actual way i would be using this yet, but for instance,
the reason i want the array is that i want to programmatically assign the methods to a different array (of buttons), in such a way that
Methods[0]
would be given to Buttons[0]
and so on13 replies