Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public void LoadContent(ContentManager content)
 {
     this.content = content;
     pan          = this.content.Load <Texture2D>("burnPan");
     animateState = PanAnimation.empty;
 }