private void OnPlayerSeparation(object sender, Physic2DSeparationEventArgs args) { RigidBody2D other = args.Body2DA == RigidBody ? args.Body2DB : args.Body2DA; if (collidingBodies.Contains(other)) { collidingBodies.Remove(other); } LastTouch(); }
private void OnPhysic2DSeparation(object sender, Physic2DSeparationEventArgs args) { this.collisionCounter--; }
private void OnPhysic2DSeparation(object sender, Physic2DSeparationEventArgs args) { this.collisionCounter--; }