public void ShowMenuWinner()
 {
     menuWinner.SetActive(true);
     chronometer.Pause();
     textTime.text = chronometer.Time.ToString();
     buttonPause.SetActive(false);
     FirebaseManager.SaveMissionStats(
         new MissionStats(chronometer.Time, CompletionType.Completed, 10));
 }
    }     //end ShowQuestion

    public void EndRound()
    {
        isRoundActive = false;
        questionPanel.SetActive(false);
        roundEndPanel.SetActive(true);
        TimeSpan totalTime = TimeSpan.FromSeconds(initialTime - timeRemaining);

        FirebaseManager.SaveMissionStats(
            new MissionStats(totalTime, CompletionType.Completed, 9));
    }    //end EndRound
示例#3
0
    }     //end ShowQuestion

    public void EndRound()
    {
        isRoundActive = false;
        questionPanel.SetActive(false);
        roundEndPanel.SetActive(true);
        TimeSpan totalTime = TimeSpan.FromSeconds(initialTime - timeRemaining);

        //DocumentStore userData = new DocumentStore();
        //userData["current_level"] = 1;
        //userData["has_seen_intro"] = true;
        FirebaseManager.SaveMissionStats(
            new MissionStats(totalTime, CompletionType.Completed, 9));
        //FirebaseManager.SaveProgressStats(new ProgressData(userData));
    }    //end EndRound