var icon : Texture2D;
var icon2: Texture2D;
var icon3: Texture2D;
var change : Texture2D;
var change2: Texture2D;
var change3: Texture2D;
function OnGUI () {
GUI.backgroundColor = Color (0, 0, 0, 0);
//if (GUI.Button (Rect (660, 110, 200, 150), icon)) {
if (button == active);{
GUI.Button (Rect (660, 110, 200, 150), iconActive)
else if(button != active);
{
GUI.Button (Rect (660, 110, 200, 150), icon)
}
Application.LoadLevel("Islands");
}
can any one help me on this scrip?i want the play button to change the texture when i hover on it..it can switch scene but cant change the texture..