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.
1 parent ea1d44b commit 7db4e6eCopy full SHA for 7db4e6e
cocos2d/CCTransition.m
@@ -233,16 +233,17 @@ - (void)update:(CCTime)delta
233
// check for runtime expired
234
if (_progress >= 1.0f)
235
{
236
- // exit out scene, and start new scene
+ // Exit out scene
237
[_outgoingScene onExit];
238
if ([CCDirector sharedDirector].sendCleanupToScene) [_outgoingScene cleanup];
239
+ _outgoingScene = nil;
240
+
241
242
+ // Start incoming scene
243
[[CCDirector sharedDirector] replaceScene:_incomingScene];
244
[_incomingScene onEnterTransitionDidFinish];
245
_incomingScene.paused = _incomingPauseState;
-
- // release scenes
246
_incomingScene = nil;
- _outgoingScene = nil;
247
248
return;
249
}
0 commit comments