Exemplo n.º 1
0
        private void OnPlayerSeparation(object sender, Physic2DSeparationEventArgs args)
        {
            RigidBody2D other = args.Body2DA == RigidBody ? args.Body2DB : args.Body2DA;

            if (collidingBodies.Contains(other))
            {
                collidingBodies.Remove(other);
            }

            LastTouch();
        }
Exemplo n.º 2
0
 private void OnPhysic2DSeparation(object sender, Physic2DSeparationEventArgs args)
 {
     this.collisionCounter--;
 }
Exemplo n.º 3
0
 private void OnPhysic2DSeparation(object sender, Physic2DSeparationEventArgs args)
 {
     this.collisionCounter--;
 }