Hi i want to make a button that when pressed does these things:
Change color tint to Selected Color and stay that way until another button is selected.
Unselect any other button which is selected.
And also execute code so for example:
When button 1 is presses it gets selected and it executesPlayerPrefs.SetInt("FirstButton" ,1)
And when button 2 is pressed button 1 gets unselected and it executes PlayerPrefs.SetInt("FirstButton" ,0)
And button 2 gets selected and executes PlayerPrefs.SetInt("SecondButton" ,1)
How can i do this?