Exemple #1
0
        protected override void Initialize()
        {
            _keyboard.OnPress(Keys.Space, () =>
            {
                if (_scene != null)
                {
                    _sceneDescriptors.Next();
                }
                loadScene();
            });

            _keyboard.OnPress(Keys.Left, () =>
            {
                if (_scene != null)
                {
                    _sceneDescriptors.Prev();
                }
                loadScene();
            });

            _keyboard.OnPress(Keys.Right, () =>
            {
                if (_scene != null)
                {
                    _sceneDescriptors.Next();
                }
                loadScene();
            });
            base.Initialize();
        }