private void TakeDamageFromPlayer(object sender, System.EventArgs e) { WeaponCollisionArgs arg = (WeaponCollisionArgs)e; if ((!canAct) || (gameObject == null) || arg.enemyAttackedID != gameObject.GetInstanceID()) { return; } SpritePushback(this, new PlayerCollisionArgs(arg.direction, arg.pushbackValue)); TakeDamage(arg.weaponDamage); }
public static void StopEnemies(object sender, WeaponCollisionArgs eventArgs) { OnStopEnemies(sender, eventArgs); }
public static void WeaponCollision(object sender, WeaponCollisionArgs eventArgs) { OnWeaponCollision(sender, eventArgs); }