if (!rightMove)
{
if (transform.rotation.z < limitHigh) //90
{
print("limitHigh");
transform.Rotate(move * -speed);
}
else
{
rightMove = false;
}
}
else
{
if (transform.rotation.z > limitLower) //-90
{
print("limitHigh");
transform.Rotate(move * speed);
}
else
{
rightMove = !false;
}
}
rightMove = !false;