예제 #1
0
        public override void OnOutAnimationFinished()
        {
            switch (_selectedOption)
            {
            case 0:
                if (_selectRaceScreen == null)
                {
                    _selectRaceScreen = new SelectRaceScreen(this);
                }
                GameEngine.Screen = _selectRaceScreen;
                break;

            case 1:
                if (_selectCarScreen == null)
                {
                    _selectCarScreen = new SelectCarScreen(this);
                }
                GameEngine.Screen = _selectCarScreen;
                break;

            case 2:
                GameEngine.Screen = new LoadRaceScreen(this);
                break;
            }
        }
예제 #2
0
 public override void OnOutAnimationFinished()
 {
     switch (_selectedOption)
     {
         case 0:
             if (_selectRaceScreen == null) _selectRaceScreen = new SelectRaceScreen(this);
             Engine.Screen = _selectRaceScreen;
             break;
         case 1:
             if (_selectCarScreen == null) _selectCarScreen = new SelectCarScreen(this);
             Engine.Screen = _selectCarScreen;
             break;
         case 2:
             Engine.Screen = new LoadRaceScreen(this);
             break;
     }
 }