Autorotate bug in with Unity

I have integrated Openfeint with Unity but I am having a problem where if you have the Openfeint dashboard up and rotate the iPhone then the auto-rotate animation activates which doesn’t do anything (just a black rectangle that rotates at the edges of the screen) but it definitely looks kind of silly. Normally you would just override the function “shouldAutorotateToInterfaceOrientation” but you can’t do this with Unity because it doesn’t inherit from UIViewController.

Is there a way to fix this?

I had a similar issue that was fixed with this code.

function Start() { 
   iPhoneKeyboard.autorotateToPortrait = false; 
   iPhoneKeyboard.autorotateToPortraitUpsideDown = false; 
   iPhoneKeyboard.autorotateToLandscapeRight = false; 
   iPhoneKeyboard.autorotateToLandscapeLeft = false; 
   }

Sweet! That work perfectly. Thanks!