Exemple #1
0
        public void OnUpdate([NotNull] GameTime gameTime)
        {
            Global.CurrentScreen.Clear();

            _testValue.Current += 5;
            _testBar.OnUpdate(gameTime);
            _testBar2.OnUpdate(gameTime);
            _testBar3.OnUpdate(gameTime);
            _testBar4.OnUpdate(gameTime);

            if (Math.Abs(_testValue.Current - _testValue.Maximum) < 0.0001)
            {
                _testValue.Current = 0;
            }

            if (!_currentScene.IsCompleted)
            {
                _currentScene.OnUpdate(gameTime);
            }
            else
            {
                _currentScene = CrossRoad.Generate(_currentStage++, _player);
            }
        }