public override bool OnCollidedWith(Fixture f1, UserControlledCharacter character, Fixture f2, FarseerPhysics.Dynamics.Contacts.Contact contact) { if (!character.Invulnerable) { character.TakeDamage(25, true, true); Dead = true; } return false; }
protected virtual bool OnCollidedWith(Fixture f, UserControlledCharacter c, Fixture cf, Contact info) { c.TakeDamage(25, true, true); return true; }
bool OnCollidedWith(Fixture f, UserControlledCharacter c, Fixture cf, Contact info) { if (!c.Invulnerable) { c.TakeDamage(10, true, true); } return true; }
public virtual bool OnCollidedWith(Fixture f1, UserControlledCharacter character, Fixture f2, Contact contact) { if (!character.Invulnerable) { character.TakeDamage(30, true, true); } return false; }