public void Update(GameTime gameTime) { if (animateState == PanAnimation.raw) { timer += (float)gameTime.ElapsedGameTime.TotalSeconds; } if (timer > 5 && timer < 10) { animateState = PanAnimation.done; timer += (float)gameTime.ElapsedGameTime.TotalSeconds; } else if (timer > 10) { animateState = PanAnimation.burnt; } }
public void LoadContent(ContentManager content) { this.content = content; pan = this.content.Load <Texture2D>("burnPan"); animateState = PanAnimation.empty; }