Ejemplo n.º 1
0
        public bool initWithEntryID(int entryId)
        {
            TouchEnabled = true;

            Schedule(tick);

            m_entry = TestEntries.TestList[entryId];
            m_test = m_entry.CreateFcn();
            m_test.Initialize();

            return true;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 private void StartTest(int index)
 {
     _entry = TestEntries.TestList[index];
     _test = _entry.CreateFcn();
     _test.GameInstance = this;
     _test.Initialize();
 }