public void restartCallback(object sender) { CCScene s = new Box2dTestBedScene(); MenuLayer box = menuWithEntryID(m_entryID); s.AddChild(box); Scene.Director.ReplaceScene(s); }
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); Scene.Director.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 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); }
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); }