Esempio n. 1
0
 //получение урона
 public override void Attack(float damage)
 {
     if (!Death)
     {
         Core.DamagePos.Add(transform.position);
         Core.DamageCount.Add(HpAmor.Damage(damage) * 100);
         if (HpAmor.HP == 0)
         {
             Death = true;
             Anim.ClearFun();
             Anim.FunctionAfterAnimation("Death1", Delete);
         }
     }
 }