public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth = Ayar.Default.EkranGenisligi;  // set this value to the desired width of your window
     graphics.PreferredBackBufferHeight = Ayar.Default.EkranYuksekligi;   // set this value to the desired height of your window
     graphics.ApplyChanges();
     graphics.PreferMultiSampling = true;
     Content.RootDirectory = "Content";
     camera = new Camera(this);
 }
 public Otobus(Camera camera, Renk renk, float konumX, bool yeniModel)
 {
     this.renk = renk;
     this.KonumX = konumX;
     this.camera = camera;
     this.yeniModel = yeniModel;
     id = (yeniModel ? ++sonIdYeni : ++sonIdEski) + renk.ToString().Substring(0, 1);
     logger.Info(id + " otobus oluşturuldu");
     seyehatBaslangicZamani = DateTime.Now;
 }
 public Camera(Game game)
     : base(game)
 {
     if (ActiveCamera == null)
         ActiveCamera = this;
 }