// Update is called once per frame
    void Update()
    {
        bool isSignedIn = GameJoltAPI.Instance.CurrentUser != null;

        if (isSignedIn)
        {
            GameObject G = GameObject.Find("SignInPanel");
            if (G)
            {
                SignInWindow S = GameObject.Find("SignInPanel").GetComponent <SignInWindow>();
                if (S)
                {
                    S.Dismiss(true);
                }
            }


            buttonsPanel.SetActive(false);
            loadBar.SetActive(true);

            if (!estouCarregando)
            {
                AgendeODiferenteDeZero();
                estouCarregando = true;
            }

            if (ForGameJoltDatesManager.estaCarregado)
            {
#if !UNITY_EDITOR
                Sessions.Open(AbriuSessao);
                Sessions.Ping();
#endif
                SceneManager.LoadScene("menuInicial");
            }
        }
        else
        {
            buttonsPanel.SetActive(true);
            loadBar.SetActive(false);
        }
    }