Beispiel #1
0
        private CameraManager()
        {
            frameCamera = new Camera();
            EgoCamera      ec  = new EgoCamera();
            OrbitCamera    oc  = new OrbitCamera();
            OrbitPanCamera ocp = new OrbitPanCamera();

            cameras.Add(ec);
            cameras.Add(oc);
            cameras.Add(ocp);

            cameraMode    = 0;
            currentCamera = cameras[(int)cameraMode];
        }
Beispiel #2
0
 public void SetCamera(CameraMode mode)
 {
     cameraMode    = mode;
     currentCamera = cameras[(int)cameraMode];
 }