Changing GUI.Button texture?

Hi, I’m trying to code multiple buttons all with the same texture. Upon clicking the button I want to change the texture but when I click the button it changes all the textures for all the buttons.

How would I go about making it so when I click the button it changes the texture of only that button?

	if (GUI.Button (new Rect (loc [0].x, loc [0].y, Screen.width * 0.025f, Screen.height * 0.05f), tex, "")) {
		tex = texb;
	}

	if (GUI.Button (new Rect (loc [1].x, loc [1].y, Screen.width * 0.025f, Screen.height * 0.05f), tex, "")) {
		tex = texb;
	}

is it possible to change an image to the GUIButton by a code?