mirror of https://github.com/axmolengine/axmol.git
issue #2404:replace LuaEngine::defaultEngine() with LuaEngine::getInstance()
This commit is contained in:
parent
456a26d7ab
commit
6854bd6b19
|
@ -35,7 +35,7 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
pDirector->setAnimationInterval(1.0 / 60);
|
||||
|
||||
// register lua engine
|
||||
LuaEngine* pEngine = LuaEngine::defaultEngine();
|
||||
LuaEngine* pEngine = LuaEngine::getInstance();
|
||||
ScriptEngineManager::getInstance()->setScriptEngine(pEngine);
|
||||
|
||||
std::string path = FileUtils::getInstance()->fullPathForFilename("hello.lua");
|
||||
|
|
Loading…
Reference in New Issue