Exemple #1
0
        protected override void OnStart()
        {
            var scene = new MyScene();

            layer = new Layer2D();
            var obj = new TextureObject2D
            {
                Texture = Engine.Graphics.CreateTexture2D(CloudTexturePath),
            };

            layer.AddObject(obj);
            scene.AddLayer(layer);
            Engine.ChangeScene(scene);
        }