Esempio n. 1
0
 public void Update(GameTime gameTime, bool reset)
 {
     if (cooldown.CooldownTimerFPS(gameTime, FramesPerSecond, reset))
     {
         FrameNumber++;
     }
     if (FrameNumber >= frames.Count)
     {
         FrameNumber = 0;
     }
     CurrentFrame = frames[FrameNumber];
 }