mirror of https://github.com/axmolengine/axmol.git
commit
29888b9d74
|
@ -825,9 +825,14 @@ void Director::runWithScene(Scene *scene)
|
|||
|
||||
void Director::replaceScene(Scene *scene)
|
||||
{
|
||||
CCASSERT(_runningScene, "Use runWithScene: instead to start the director");
|
||||
//CCASSERT(_runningScene, "Use runWithScene: instead to start the director");
|
||||
CCASSERT(scene != nullptr, "the scene should not be null");
|
||||
|
||||
if (_runningScene == nullptr) {
|
||||
runWithScene(scene);
|
||||
return;
|
||||
}
|
||||
|
||||
if (scene == _nextScene)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue