コード例 #1
0
ファイル: CameraWrapper.cs プロジェクト: Jamedjo/BeatShift
 public CameraWrapper(Racer racer)
 {
     stage = CameraStage.ShipSelect;
     this.racer = racer;
     properties = new SharedCameraProperties(Viewports.fullViewport);
     revolveCamera = new RevolveCamera(ref properties);
     currentCamera = revolveCamera;
     #if WINDOWS
     mouseCamera = new MouseCamera(ref properties, getShipPosition, getShipOrientation);
     #endif
 }
コード例 #2
0
        public CameraWrapper(Racer racer)
        {
            stage         = CameraStage.ShipSelect;
            this.racer    = racer;
            properties    = new SharedCameraProperties(Viewports.fullViewport);
            revolveCamera = new RevolveCamera(ref properties);
            currentCamera = revolveCamera;
#if WINDOWS
            mouseCamera = new MouseCamera(ref properties, getShipPosition, getShipOrientation);
#endif
        }