protected override PlatformContext CreateContext() { PlatformContext context; if (!File.Exists(DefaultContext)) { File.Copy(@"Content\Maps\default.ctx", DefaultContext); } context = BinPlatformContextSerializer.Load(DefaultContext); context.Camera = this.Camera; context.Enabled = false; return(context); }
protected override PlatformContext CreateContext() { PlatformContext context; if (File.Exists(PlatformEditorScene.DefaultContext)) { context = BinPlatformContextSerializer.Load(PlatformEditorScene.DefaultContext); } else { context = BinPlatformContextSerializer.Load(@"Content\Maps\default.ctx"); } context.Camera = this.Camera; return(context); }