DodongosQuest.Achievements.AchievementNotifier.Update C# (CSharp) Method

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public void Update(GameTime gameTime)
        {
            if (_showing)
            {
                if(_timeOfFirstUpdate == null || _timeOfFirstUpdate == new TimeSpan())
                    _timeOfFirstUpdate = gameTime.TotalGameTime;
                if (gameTime.TotalGameTime - _timeOfFirstUpdate >= new TimeSpan(0, 0, 0, 0, _millisecondsToShowFor))
                {
                    if (DoneDisplaying != null)
                        DoneDisplaying(this);
                    _showing = false;
                }
            }
        }