private void CloseClosedSuccessfully(string str)
    {
        GSResult result = JsonUtility.FromJson <GSResult>(str);

        if (result.scriptData.result == "open")
        {
            Popup.Instance.DisplayMessage("Question opened.");
        }
        else if (result.scriptData.result == "closed")
        {
            Popup.Instance.DisplayMessage("Question closed.");
        }
    }
    private void SaveWinnerCallback(string str)
    {
        GSResult result = JsonUtility.FromJson <GSResult>(str);

        if (result.scriptData.result == "correct answer")
        {
            toggleGroupElement.SetAllTogglesOff();
            Popup.Instance.DisplayMessage("Correct answer. Wait for next question.");
            User.instance.OpenGame();
        }
        if (result.scriptData.result == "winner")
        {
            toggleGroupElement.SetAllTogglesOff();
            Popup.Instance.DisplayMessage("You won the game today.");
            User.instance.OpenGame();
        }
    }
 protected override void Awake()
 {
     base.Awake();
     _instance = this;
 }