mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
The Pairs come out of objects
This commit is contained in:
parent
4023880efd
commit
44bb628381
2 changed files with 6 additions and 6 deletions
|
@ -13,10 +13,10 @@ var CollisionActiveEvent = new Class({
|
|||
|
||||
this.pairs = pairs;
|
||||
|
||||
if (pairs.length > 0)
|
||||
if (pairs.pairs.length > 0)
|
||||
{
|
||||
this.bodyA = pairs[0].bodyA;
|
||||
this.bodyB = pairs[0].bodyB;
|
||||
this.bodyA = pairs.pairs[0].bodyA;
|
||||
this.bodyB = pairs.pairs[0].bodyB;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,10 +13,10 @@ var CollisionEndEvent = new Class({
|
|||
|
||||
this.pairs = pairs;
|
||||
|
||||
if (pairs.length > 0)
|
||||
if (pairs.pairs.length > 0)
|
||||
{
|
||||
this.bodyA = pairs[0].bodyA;
|
||||
this.bodyB = pairs[0].bodyB;
|
||||
this.bodyA = pairs.pairs[0].bodyA;
|
||||
this.bodyB = pairs.pairs[0].bodyB;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue