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