issue #1425: update lua script

This commit is contained in:
mustime 2012-08-31 18:25:28 +08:00
parent 1092d04b7c
commit 680e189365
1 changed files with 4 additions and 4 deletions

View File

@ -16,18 +16,18 @@ local function backAction()
SceneIdx = SceneIdx + MAX_LAYER SceneIdx = SceneIdx + MAX_LAYER
end end
return CreateActionsEaseleLayer() return CreateActionsEaseLayer()
end end
local function restartAction() local function restartAction()
return CreateActionsEaseleLayer() return CreateActionsEaseLayer()
end end
local function nextAction() local function nextAction()
SceneIdx = SceneIdx + 1 SceneIdx = SceneIdx + 1
SceneIdx = math.mod(SceneIdx, MAX_LAYER) SceneIdx = math.mod(SceneIdx, MAX_LAYER)
return CreateActionsEaseleLayer() return CreateActionsEaseLayer()
end end
local function backCallback(sender) local function backCallback(sender)
@ -700,7 +700,7 @@ end
----------------------------------- -----------------------------------
-- Actions Ease Test -- Actions Ease Test
----------------------------------- -----------------------------------
function CreateActionsEaseleLayer() function CreateActionsEaseLayer()
if SceneIdx == 0 then if SceneIdx == 0 then
return SpriteEase() return SpriteEase()
elseif SceneIdx == 1 then elseif SceneIdx == 1 then