void ChooseNextLevel() { // Reset everything ClearGameObjects(); Mouse.Clear(); currentInstanceMetadata = null; instance = null; truckFillBars = new List <ProgressBar>(); mouseDownPointIdx = -1; mouseDownEdge = null; activePointIdx = -1; activePointObject = null; dragEdges = new List <GameObject>(); blinkingObjects = new List <GameObject>(); originalColors = new Dictionary <GameObject, Color>(); pointToCircleObject = new Dictionary <Vector, GameObject>(); //Mouse.Listen(MouseButton.Left, ButtonState.Pressed, MenuMousePressed, "Valitse kenttä"); //TouchPanel.Listen(ButtonState.Released, OnTouchEvent, "Valitse kenttä"); problemMenu.ViewSetSelect(problemInstanceMetadata, OnSetSelected); }