Esempio n. 1
0
 public void Damage(float damage, Vector2 KnockBack)
 {
     damage *= GS.EnemyAtkRate;
     health -= damage;
     body.AddForce(KnockBack, ForceMode2D.Impulse);
     PE.Hurt();
     Check();
 }