예제 #1
0
 private void StartTest(int index)
 {
     _entry             = TestEntries.TestList[index];
     _test              = _entry.CreateFcn();
     _test.GameInstance = this;
     _test.Initialize();
 }
예제 #2
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);
        }
예제 #3
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);
        }