Пример #1
0
 public void restartCallback(object sender)
 {
     CCScene s = new Box2dTestBedScene();
     MenuLayer box = menuWithEntryID(m_entryID);
     s.AddChild(box);
     Scene.Director.ReplaceScene(s);
 }
Пример #2
0
        public void restartCallback(object sender)
        {
            CCScene   s   = new Box2dTestBedScene();
            MenuLayer box = menuWithEntryID(m_entryID);

            s.AddChild(box);
            CCDirector.SharedDirector.ReplaceScene(s);
        }
Пример #3
0
 public void nextCallback(object sender)
 {
     CCScene s = new Box2dTestBedScene();
     int next = m_entryID + 1;
     if (next >= g_totalEntries)
         next = 0;
     MenuLayer box = menuWithEntryID(next);
     s.AddChild(box);
     Scene.Director.ReplaceScene(s);
 }
Пример #4
0
        public void nextCallback(object sender)
        {
            CCScene s    = new Box2dTestBedScene();
            int     next = m_entryID + 1;

            if (next >= g_totalEntries)
            {
                next = 0;
            }
            MenuLayer box = menuWithEntryID(next);

            s.AddChild(box);
            CCDirector.SharedDirector.ReplaceScene(s);
        }
Пример #5
0
        public void backCallback(object sender)
        {
            CCScene s = new Box2dTestBedScene();
            int next = m_entryID - 1;
            if (next < 0)
            {
                next = g_totalEntries - 1;
            }

            MenuLayer box = menuWithEntryID(next);

            s.AddChild(box);
            CCDirector.SharedDirector.ReplaceScene(s);
        }
Пример #6
0
        public void backCallback(object sender)
        {
            CCScene s    = new Box2dTestBedScene();
            int     next = m_entryID - 1;

            if (next < 0)
            {
                next = g_totalEntries - 1;
            }

            MenuLayer box = menuWithEntryID(next);

            s.AddChild(box);
            Scene.Director.ReplaceScene(s);
        }