Exemple #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;
        }
Exemple #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;
        }
Exemple #3
0
 private void StartTest(int index)
 {
     _entry = TestEntries.TestList[index];
     _test = _entry.CreateTest();
     _test.GameInstance = this;
     _test.Initialize();
 }
Exemple #4
0
		public void StarTestRube()
		{
			_testSelection = _testIndex = 1;
			_entry = TestEntries.TestList[_testIndex];
			_test = _entry.CreateTestRube();
			_test.GameInstance = this;
			_test.Initialize();
			ResetView();
			_test.DebugView.AppendFlags(DebugViewFlags.DebugPanel);
		}