示例#1
0
        public override void OpenScreen()
        {
            ExerciseGameComponent[] exercises = _exerciseQueue.Exercises;
            _exerciseTiles = new ExerciseTile[exercises.Length];

            /** Draw at the same height for cycling through */
            for (int i = 0; i < exercises.Length; i = i + 1)
            {
                /* listen for exercise game components counter */
                exercises[i].CountdownChanged += CountdownChanged;
                _exerciseTiles[i]              = new ExerciseTile(Game, exercises[i], i, _tileSize, _tilePosition);
                _exerciseTiles[i].LoadContent(Game, contentManager, SharedSpriteBatch);
                if (i == 0)
                {
                    _exerciseTiles[i].IsCurrentTile = true;
                }
            }

            base.Transition();
        }
        public override void OpenScreen()
        {
            ExerciseGameComponent[] exercises = ExerciseQueue.Exercises;
            _exerciseTiles = new ExerciseTile[exercises.Length];

            /** Draw at the same height for cycling through */
            for (int i = 0; i < exercises.Length; i = i + 1)
            {
                /* listen for exercise game components counter */
                exercises[i].CountdownChanged += CountdownChanged;
                _exerciseTiles[i] = new ExerciseTile(Game, exercises[i], i, _tileSize, _tilePosition);
                _exerciseTiles[i].LoadContent(Game, contentManager, SharedSpriteBatch);
                if (i == 0)
                {
                    _exerciseTiles[i].IsCurrentTile = true;
                }
            }

            base.Transition();
        }