use Screen.PrimaryOrientation here maybe , should avoid the change