public void SetNameAndCreateProfile()
 {
     profileManager.AddNewProfile(nameField.text, emailField.text, shouldUpload.isOn);
     if (shouldUpload.isOn)
     {
         questionnaireCanvas.SetActive(true);
         this.gameObject.SetActive(false);
     }
     else
     {
         gameManager.ResetGame();
     }
 }
Exemplo n.º 2
0
 private void AddToDownloadsCount()
 {
     DownloadAmount.Text = $"Downloaded {++downloadsDone}/{parameters.Packages.Count()}";
     SetProgressBarValue();
     if (downloadsDone == parameters.Packages.Count())
     {
         Analytics.TrackEvent(AnalyticsEventNames.ProfileInstalled);
         Task.Run(async() =>
         {
             await ProfileManager.AddNewProfile(parameters.ProfileName, parameters.Packages.ToArray());
             await Task.Delay(600);
             await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => {
                 MainPage.Current.SwitchToPageByTag("Play");
             });
         });
     }
 }
Exemplo n.º 3
0
 private void NewProfileHandler(object sender, System.EventArgs e)
 {
     manager.AddNewProfile();
     UpdateUI();
 }
Exemplo n.º 4
0
 public void AddProfile()
 {
     profileManager.AddNewProfile(nameInputField.text);
 }