Пример #1
0
        public void TakeDamage(float Damage)
        {
            ThisGruntHealth -= Damage;

            rageTracker.RageTick();
            if (ThisGruntHealth <= 0)
            {
                EB.Die();
            }
        }
Пример #2
0
 public void Damage(float Damage)
 {
     health -= Damage;
     rageTracker.RageTick();
     if (health <= 0)
     {
         GM.enemiesKilled++;
         Destroy(gameObject);
     }
 }