예제 #1
0
 public void excuteScriptTouchHandler(int eventType, CCTouch pTouch)
 {
     if (this.m_pEventTypeFuncMap != null && CCScriptEngineManager.sharedScriptEngineManager().ScriptEngine != null)
     {
         CCScriptEngineManager.sharedScriptEngineManager().ScriptEngine.executeTouchEvent(this.m_pEventTypeFuncMap[eventType].ToString(), pTouch);
     }
 }
예제 #2
0
 public void excuteScriptTouchesHandler(int eventType, List <CCTouch> pTouches)
 {
     if (m_pEventTypeFuncMap != null && CCScriptEngineManager.sharedScriptEngineManager().ScriptEngine != null)
     {
         CCScriptEngineManager.sharedScriptEngineManager().ScriptEngine.executeTouchesEvent((m_pEventTypeFuncMap)[eventType].ToString(),
                                                                                            pTouches);
     }
 }