public static MenuLayer menuWithEntryID(int entryId) { var pLayer = new MenuLayer(); pLayer.initWithEntryID(entryId); return(pLayer); }
public void restartCallback(object sender) { CCScene s = new Box2dTestBedScene(); MenuLayer box = menuWithEntryID(m_entryID); s.AddChild(box); CCDirector.SharedDirector.ReplaceScene(s); }
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); }
public override void runThisTest() { AddChild(MenuLayer.menuWithEntryID(0)); CCDirector.SharedDirector.ReplaceScene(this); }
public static MenuLayer menuWithEntryID(int entryId) { var pLayer = new MenuLayer(); pLayer.initWithEntryID(entryId); return pLayer; }