private void StartTest(int index) { _entry = TestEntries.TestList[index]; _test = _entry.CreateFcn(); _test.GameInstance = this; _test.Initialize(); }
public bool initWithEntryID(int entryId) { TouchEnabled = true; Schedule(tick); m_entry = TestEntries.TestList[entryId]; m_test = m_entry.CreateFcn(); m_test.Initialize(); return(true); }
public bool initWithEntryID(int entryId) { //TouchEnabled = true; Schedule(tick); m_entry = TestEntries.TestList[entryId]; m_test = m_entry.CreateFcn(); m_test.Initialize(); // Register Touch Event var touchListener = new CCEventListenerTouchOneByOne(); touchListener.IsSwallowTouches = true; touchListener.OnTouchBegan = onTouchBegan; touchListener.OnTouchMoved = onTouchMoved; touchListener.OnTouchEnded = onTouchEnded; EventDispatcher.AddEventListener(touchListener, this); return(true); }