示例#1
0
 private void IsHeroLifeZero()
 {
     if (this.hero.IsLife == true)
     {
         if (this.hero.Life == 0)
         {
             var skleton = new Skeleton(this.hero.X, this.hero.Y, this.hero.Width / 2, this.hero.Height - 10);
             DrawerDevice.AddObject(skleton);
             this.hero.IsLife = false;
             this.hero.Y      = -200;
         }
         else
         {
             LivingCreaturesLifeRegen(this.hero);
         }
     }
 }