Unity 5 Screen.orientation problem

In Unity 4.6 I made a button to switch between LandscapeLeft and LandscapeRight for a multiplayer single tablet game to turn the sceen.

if (Screen.orientation == ScreenOrientation.LandscapeLeft)
{
   Screen.orientation = ScreenOrientation.LandscapeRight;
}
else
{
   Screen.orientation = ScreenOrientation.LandscapeLeft;
}

It worked well in 4.6, but now in Unity 5 I get only “Landscape” as result if I check Screen.orientation.

Any idea?

thanks in advance
Frank

ok found a solution by myself:

private string myOrientation;

void Start()
{
   myOrientation = "left";
}

public void SwitchScreen()
{
        
  if (myOrientation=="left")
  {
      Screen.orientation = ScreenOrientation.LandscapeRight;
      myOrientation = "right";
  }
  else
  {
      Screen.orientation = ScreenOrientation.LandscapeLeft;
      myOrientation = "left";
   }
  
}