コード例 #1
0
ファイル: Zomby2.cs プロジェクト: Diniskapol87/Tank_test_game
 //получение урона
 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);
         }
     }
 }