Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }