Ejemplo n.º 1
0
        // Switchs between Orthographic and Perspective Camera
        public void ChangeViewMode(int viewMode)
        {
            switch (viewMode)
            {
            // Orthographic Mode
            case 0:
                viewportCamera.SetOrthographicCam();
                MinZoom = 8;
                MaxZoom = 20;
                break;

            // Perspective Mode
            case 1:
                viewportCamera.SetPerspectiveCam();
                MinZoom = 2;
                MaxZoom = 5;
                break;
            }
        }