We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b87584 + 339b7a4 commit 844358fCopy full SHA for 844358f
SpriteKit-Components/SKComponentNode.m
@@ -153,7 +153,7 @@ - (void)onExit {
153
154
// unregister self with scene
155
SKComponentScene* scene = SKComponentSceneForNode(self);
156
- [scene registerComponentNode:self];
+ [scene unregisterComponentNode:self];
157
158
// perform onExit for all components
159
for (id<SKComponent> component in components) {
0 commit comments