async void IniciarFMS(object sender, EventArgs args)
        {
            var valores = new Criterios
            {
                player1 = Player1.Text,
                player2 = Player2.Text,
                sitio   = Sitio.Text
            };
            var FormatoFMS = new EasyMode();

            FormatoFMS.BindingContext = valores;
            if (valores.player1 == null || valores.player2 == null)
            {
                await Application.Current.MainPage.DisplayAlert("Alerta", "Verifica que ambos jugadores tenga Nombre", "OK");
            }
            else
            {
                await Navigation.PushAsync(FormatoFMS);
            }
        }
Esempio n. 2
0
 public void ReloadGame()
 {
     EasyMode.Reset();
     SceneManager.LoadScene("Easy Mode");
 }