public void YesButtonClick() { switch (functionIndex) { case 1: gm.GameOver(); break; case 2: gm.Quit(); break; case 3: gm.ReloadGame(); break; } HideMessage(); }