public override void Update()
 {
     if (!this.inited)
     {
         this.inited = true;
         SpriteMap graphic = this.graphic as SpriteMap;
         if (!this.flipHorizontal && graphic.frame % 8 == 0)
         {
             if (Level.CheckPoint <BackgroundPyramid>(this.position + new Vec2(-16f, 0.0f)) != null)
             {
                 ++graphic.frame;
                 graphic.UpdateFrame();
             }
         }
         else if (!this.flipHorizontal && graphic.frame % 8 == 7)
         {
             if (Level.CheckPoint <BackgroundPyramid>(this.position + new Vec2(16f, 0.0f)) != null)
             {
                 --graphic.frame;
                 graphic.UpdateFrame();
             }
         }
         else if (this.flipHorizontal && graphic.frame % 8 == 0)
         {
             if (Level.CheckPoint <BackgroundPyramid>(this.position + new Vec2(16f, 0.0f)) != null)
             {
                 ++graphic.frame;
                 graphic.UpdateFrame();
             }
         }
         else if (this.flipHorizontal && graphic.frame % 8 == 7 && Level.CheckPoint <BackgroundPyramid>(this.position + new Vec2(-16f, 0.0f)) != null)
         {
             --graphic.frame;
             graphic.UpdateFrame();
         }
     }
     base.Update();
 }