From 74ec90f90fd30c2b7b0637fc668519f767bee89f Mon Sep 17 00:00:00 2001 From: dualface Date: Sat, 11 Oct 2014 03:14:06 +0800 Subject: [PATCH] remove unused codes --- templates/lua-template-default/src/main.lua | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/templates/lua-template-default/src/main.lua b/templates/lua-template-default/src/main.lua index 8e99832720..87bfbb5dac 100644 --- a/templates/lua-template-default/src/main.lua +++ b/templates/lua-template-default/src/main.lua @@ -41,16 +41,14 @@ local function main() --set FPS. the default value is 1.0/60 if you don't call this director:setAnimationInterval(1.0 / 60) - cc.FileUtils:getInstance():addSearchPath("src") - cc.FileUtils:getInstance():addSearchPath("res") - local schedulerID = 0 + local schedulerID = 0 --support debug local targetPlatform = cc.Application:getInstance():getTargetPlatform() if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) or (cc.PLATFORM_OS_ANDROID == targetPlatform) or (cc.PLATFORM_OS_WINDOWS == targetPlatform) or (cc.PLATFORM_OS_MAC == targetPlatform) then cclog("result is ") - --require('debugger')() + --require('debugger')() end require "hello2" @@ -236,11 +234,11 @@ local function main() sceneGame:addChild(createLayerFarm()) sceneGame:addChild(createLayerMenu()) - if cc.Director:getInstance():getRunningScene() then - cc.Director:getInstance():replaceScene(sceneGame) - else - cc.Director:getInstance():runWithScene(sceneGame) - end + if cc.Director:getInstance():getRunningScene() then + cc.Director:getInstance():replaceScene(sceneGame) + else + cc.Director:getInstance():runWithScene(sceneGame) + end end