Esempio n. 1
0
        protected override void OnPick(string selection, Engine engine)
        {
            switch (selection)
            {
            case "start":
                engine.SwitchScreen(_screenFactory.CreateGameScreen());
                break;

            case "options":
                engine.SwitchScreen(_screenFactory.CreateOptionsScreen());
                break;

            case "highscore":
                engine.SwitchScreen(_screenFactory.CreateHighscoreScreen());
                break;

            case "quit":
                engine.Stop();
                break;
            }
        }