mirror of https://github.com/axmolengine/axmol.git
issue #1425: fix a problem that missing "MainMenu"
This commit is contained in:
parent
c15c96ac28
commit
289eb65dde
|
@ -24,8 +24,8 @@ end
|
||||||
local function nextCallback(sender)
|
local function nextCallback(sender)
|
||||||
local scene = CCScene:create()
|
local scene = CCScene:create()
|
||||||
|
|
||||||
scene:addChild(CreateBackMenuItem())
|
|
||||||
scene:addChild(nextAction())
|
scene:addChild(nextAction())
|
||||||
|
scene:addChild(CreateBackMenuItem())
|
||||||
|
|
||||||
CCDirector:sharedDirector():replaceScene(scene)
|
CCDirector:sharedDirector():replaceScene(scene)
|
||||||
end
|
end
|
||||||
|
@ -33,8 +33,8 @@ end
|
||||||
local function restartCallback(sender)
|
local function restartCallback(sender)
|
||||||
local scene = CCScene:create()
|
local scene = CCScene:create()
|
||||||
|
|
||||||
scene:addChild(CreateBackMenuItem())
|
|
||||||
scene:addChild(restartAction())
|
scene:addChild(restartAction())
|
||||||
|
scene:addChild(CreateBackMenuItem())
|
||||||
|
|
||||||
CCDirector:sharedDirector():replaceScene(scene)
|
CCDirector:sharedDirector():replaceScene(scene)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue