Beispiel #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();
        }
Beispiel #2
0
 private void OnPhysic2DSeparation(object sender, Physic2DSeparationEventArgs args)
 {
     this.collisionCounter--;
 }
Beispiel #3
0
 private void OnPhysic2DSeparation(object sender, Physic2DSeparationEventArgs args)
 {
     this.collisionCounter--;
 }