How can I make it to where when my mouse goes over a button for my 3d menu the button pops out and when the mouse is off it the button goes back in and upon clicking on it it does the application.loadlevel ordeal this is the code i have and i kno it works with buttons but i want to use the mouse please help me. Thank You
function Update ()
{
if(Input.GetButtonDown("Fire1"))
{
iTween.MoveTo(gameObject,{"z":-1, "time":1});
}
else if(Input.GetButtonUp("Fire1"))
{
iTween.MoveTo(gameObject,{"z":0, "time":1});
}
}
that is my code im using right now and that works but i have more than one button and again i want to use the mouse any help or direction is greatly appriciated.