public void Update() { if (Controller.KeyPressed(Keys.Escape)) { Load.sounds.playSound(Sound.SoundName.toogle); Previous(); } /*else if (Controller.KeyPressed(Keys.Right)) * { * Load.sounds.playSound(Sound.SoundName.toogle); * if (!GameManager.GameRunning) * chooseMap.RightMap(); * } * else if (Controller.KeyPressed(Keys.Left)) * { * Load.sounds.playSound(Sound.SoundName.toogle); * if (!GameManager.GameRunning) * chooseMap.LeftMap(); * }*/ if (CurrentMenu.Last() == Congrats) { YourName.Update(); if (YourName.Text == String.Empty) { EnterYourName.Text = messageYourName; Congrats.AlignItemsX(); } else { EnterYourName.Text = YourName.Text; Congrats.AlignItemsX(); } } else if (CurrentMenu.Last() == SaveEditor) { YourPath.Update(); if (YourPath.Text == String.Empty) { EnterYourPath.Text = messageYourPath; SaveEditor.AlignItemsX(); } else { EnterYourPath.Text = YourPath.Text; SaveEditor.AlignItemsX(); } } CurrentMenu.Last().Update(); }