mirror of https://github.com/axmolengine/axmol.git
updates CCScheduler to work with the JS Bindings
This commit is contained in:
parent
a97d0f5a95
commit
ce40351855
|
@ -161,9 +161,7 @@ void CCTimer::update(float dt)
|
|||
{
|
||||
(m_pTarget->*m_pfnSelector)(m_fElapsed);
|
||||
}
|
||||
#ifdef COCOS2D_JAVASCRIPT
|
||||
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed, (CCNode *)this);
|
||||
#else
|
||||
#ifndef COCOS2D_JAVASCRIPT
|
||||
if (m_nScriptHandler)
|
||||
{
|
||||
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed);
|
||||
|
@ -183,9 +181,7 @@ void CCTimer::update(float dt)
|
|||
{
|
||||
(m_pTarget->*m_pfnSelector)(m_fElapsed);
|
||||
}
|
||||
#ifdef COCOS2D_JAVASCRIPT
|
||||
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed, (CCNode *)this);
|
||||
#else
|
||||
#ifndef COCOS2D_JAVASCRIPT
|
||||
if (m_nScriptHandler)
|
||||
{
|
||||
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed);
|
||||
|
@ -204,9 +200,7 @@ void CCTimer::update(float dt)
|
|||
{
|
||||
(m_pTarget->*m_pfnSelector)(m_fElapsed);
|
||||
}
|
||||
#ifdef COCOS2D_JAVASCRIPT
|
||||
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed, (CCNode *)this);
|
||||
#else
|
||||
#ifndef COCOS2D_JAVASCRIPT
|
||||
if (m_nScriptHandler)
|
||||
{
|
||||
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed);
|
||||
|
|
Loading…
Reference in New Issue