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 scene = CCScene:create()
|
||||
|
||||
scene:addChild(CreateBackMenuItem())
|
||||
scene:addChild(nextAction())
|
||||
scene:addChild(CreateBackMenuItem())
|
||||
|
||||
CCDirector:sharedDirector():replaceScene(scene)
|
||||
end
|
||||
|
@ -33,8 +33,8 @@ end
|
|||
local function restartCallback(sender)
|
||||
local scene = CCScene:create()
|
||||
|
||||
scene:addChild(CreateBackMenuItem())
|
||||
scene:addChild(restartAction())
|
||||
scene:addChild(CreateBackMenuItem())
|
||||
|
||||
CCDirector:sharedDirector():replaceScene(scene)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue