Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 0b87584

Browse files
committed
Merge pull request #5 from nacrossweb/master
didBeginContact was called from didEndContact
2 parents a564b88 + bd93d4d commit 0b87584

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SpriteKit-Components/SKComponentScene.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ - (void)didBeginContact:(SKPhysicsContact *)contact {
199199
- (void)didEndContact:(SKPhysicsContact *)contact {
200200
if ([contact.bodyA.node isKindOfClass:[SKComponentNode class]]) {
201201
for (id<SKComponent> component in ((SKComponentNode*)contact.bodyA.node).components) {
202-
SKComponentPerformSelectorWithObject(component, didBeginContact, contact);
202+
SKComponentPerformSelectorWithObject(component, didEndContact, contact);
203203
}
204204
}
205205
if ([contact.bodyB.node isKindOfClass:[SKComponentNode class]]) {
206206
for (id<SKComponent> component in ((SKComponentNode*)contact.bodyB.node).components) {
207-
SKComponentPerformSelectorWithObject(component, didBeginContact, contact);
207+
SKComponentPerformSelectorWithObject(component, didEndContact, contact);
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)