예제 #1
0
        public static MenuLayer menuWithEntryID(int entryId)
        {
            var pLayer = new MenuLayer();

            pLayer.initWithEntryID(entryId);
            return(pLayer);
        }
예제 #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);
            CCDirector.SharedDirector.ReplaceScene(s);
        }
예제 #4
0
        public override void runThisTest()
        {
            AddChild(MenuLayer.menuWithEntryID(0));

            CCDirector.SharedDirector.ReplaceScene(this);
        }
예제 #5
0
 public static MenuLayer menuWithEntryID(int entryId)
 {
     var pLayer = new MenuLayer();
     pLayer.initWithEntryID(entryId);
     return pLayer;
 }