protected override void ActivateButton() { if (HowToPlay != null && HowToPlay.Parent != null) return; switch (CurrentSelection) { case 0: { // Play Game.Start(); if (Parent != null) Parent.RemoveChild(this); } break; case 1: { // How to Play HowToPlay = new HowToPlay(Game); AddChild(HowToPlay); SelectButton(2); } break; case 2: { // Exit Game.CloseWindow(); } break; } }
protected override void ActivateButton() { if (HowToPlay != null && HowToPlay.Parent != null) { return; } switch (CurrentSelection) { case 0: { // Play Game.Start(); if (Parent != null) { Parent.RemoveChild(this); } } break; case 1: { // How to Play HowToPlay = new HowToPlay(Game); AddChild(HowToPlay); SelectButton(2); } break; case 2: { // Exit Game.CloseWindow(); } break; } }