Exemplo n.º 1
0
        public void NewOrientation()
        {
            switch (s_currentOrientation)
            {
            case DisplayOrientation.LandscapeLeft:
                s_currentOrientation = DisplayOrientation.Portrait;
                break;

            case DisplayOrientation.Portrait:
                s_currentOrientation = DisplayOrientation.LandscapeRight;
                break;

            case DisplayOrientation.LandscapeRight:
                s_currentOrientation = DisplayOrientation.LandscapeLeft;
                break;
            }
            CCDrawManager.SetOrientation(s_currentOrientation);
        }