Beispiel #1
0
        protected override async void Start()
        {
            Scene = new Scene(Context);
            var sceneParameters = new SceneParameters(Scene, Context, UI, ResourceCache, Renderer);

            sceneParameters.Platform = Platform;

            var boxScene = new BoxScene(sceneParameters);

            boxScene.Show();

            // Subscribe to Esc key:
            Input.KeyDown += async args =>
            {
                switch (args.Key)
                {
                case Key.Esc:
                    await Exit();

                    break;

                case Key.C:
                    AddCollisionDebugBox(Scene, true);
                    break;

                case Key.V:
                    AddCollisionDebugBox(Scene, false);
                    break;
                }
            };
        }
Beispiel #2
0
 public BoxScene(SceneParameters sceneData)
 {
     this.SceneData = sceneData;
 }