if (isRotate == true)
{
transform.Rotate(Vector3.down * speedRotate * Time.deltaTime);
}
if (isRotate == false)
{
transform.Rotate(Vector3.up * speedRotate * Time.deltaTime);
}
if (transform.rotation.y > -90)
{
transform.rotation = Quaternion.Euler(0, -90f, 0);
}