}
function OnGUI()
{
if (GUI.Button(Rect(15,70,50,30),"Left"))
{
IsRight=!IsRight;
}
if (GUI.Button(Rect(65,70,50,30),"Right"))
{
IsLeft=!IsLeft;
}
if (GUI.Button(Rect(40,100,50,30),"Down"))
{
IsDown=!IsDown;
}
if (GUI.Button(Rect(40,40,50,30),"Up"))
{
IsUp=!IsUp;
}