public override void Update() { base.Update(); GetInput(); currentSelected = (SelectedGameOverBtn)menuNum; foreach (var button in buttons) { button.Update(); } buttons[menuNum].Color = new Color(237, 71, 86); }
public GameOverState() { playAgainBtn = new Button("Play Again", "Fonts\\PixelFont", "Images\\btn-template", new Vector2(250, 450), new Vector2(245, 100)); menuBtn = new Button("Menu", "Fonts\\PixelFont", "Images\\btn-template", new Vector2(550, 450), new Vector2(200, 100)); bg_card = new GameObject("Images\\gameover_card", new Vector2(176, 100), new Vector2(671, 294)); player_progress = new GameObject("Images\\plyer_progress", new Vector2(720, 298), new Vector2(55, 55)); animationManager = new AnimationManager(); progressAnim = new Animation("Images\\player_progress_sheet", player_progress.dimension, 80f, true); animationManager.PlayAnimation(progressAnim, Anim.Idle); this.buttons = new List <Button>() { playAgainBtn, menuBtn }; currentSelected = (SelectedGameOverBtn)menuNum; }