I have many Buttons in my new project but i dont know how to get them so, that i dont have to connect any button to any game object. For example i have 50 levels and 50 butons for them. Because of that i need to connect my 50 buttons in the Inspector to Level 1, i need to connect my 50 buttons in the Inspector to Level 2 and so on. Does somebody know how to code, that i only need to connect the Level 1 button to the Level 1 game object without doing 50 scripts? I tried it with [SerializeField] but theres no difference. I hope i described it not to bad, im from Germany.
Thanks:)