void BoardStartGame(object[] args) { // load game image = (Sprite)args [0]; // picture Lib.RemoveObjects(rootScene); // load the game from the content list Board board = Lib.AddObject <Board>(content.games [gameID].board, rootScene); board.SendMessage("SetData", SendMessageOptions.DontRequireReceiver); // load the game interface window UIRoot.CloseAll(); UIRoot.Load(WindowName.Win_Board); }
public void BackMainMenu() { UIRoot.CloseAll(); UIRoot.Load(WindowName.Win_MainMenu); }