For my game, I have level selection scene and it contains 30 buttons in it.
In each button I have added Tk2dUIItem script to it. This script’s Target contains scripts that contains click methods in it.
This script’s OnClick parameter combo box I have selected method that this button need to call.
At present the condition is, I have to create thirty methods for each button. As per my assumption this thing is wrong so if I can able to know which object calling this method then only single method become enough for me.
If you have any better way to implement this situation then please give some help.