I’m trying to change the texture of a button, and i cant seem to figure out how to do it.
here is a sample of my code
if (GUILayout.Button ( square3, ("label") ) && (gameWin == false))
if (whichSquare == 3)
{
audio.PlayOneShot(applause);
gameWin = true ;
}
else if (whichSquare != 3)
{
// change button texture to square3Wrong
audio.PlayOneShot(buzzer);
}