Esempio n. 1
0
        public static string GetNameFromScene(HexenScene scene)
        {
            switch (scene)
            {
            case HexenScene.GameScene:
                return("GameScene");

            default:
                return("StartMenuScene");
            }
        }
Esempio n. 2
0
        private void HandleSceneChange(HexenScene scene)
        {
            _currentScene = scene;

            switch (scene)
            {
            case HexenScene.StartMenuScene:
                ResetGame();
                break;

            case HexenScene.GameScene:
                InitGame();
                break;
            }
        }