public Update ( |
||
gameTime | ||
리턴 | void |
public void Update(GameTime gameTime)
{
_elapsedTime += gameTime.ElapsedGameTime;
if (_elapsedTime > TimeSpan.FromSeconds(1.0))
{
_elapsedTime -= TimeSpan.FromSeconds(1.0);
_frameRate = _frameCounter;
_frameCounter = 0;
}
}