Buttons not working

I think i have everything typed out correctly, dont know why this error is showing.

The function GameObject.FindObjectOfType<Buttons>() only returns the first object it finds of type Buttons,
what you want is to call GameObject.FindObjectsOfType<Buttons>(), with an ā€˜sā€™, to return an array.

1 Like

Sorry i dont under stand

Oh ok i get it now. Thanks :3

Privacy & Terms