public void LoggedIn()
 {
     LoginButtonText.GetComponent <TextMeshProUGUI>().fontSize = 23.28f;
     LoginButtonText.GetComponent <TextMeshProUGUI>().text     = "Connect";
     loggedIn = true;
     Destroy(LoginButton);
     LoginButton.SetActive(false);
     LoginButtonCover.SetActive(false);
     UserLoginText.SetActive(false);
     PasswordText.SetActive(false);
     TitleText.SetActive(false);
     HeadingPanel.SetActive(false);
     HeadingText.SetActive(false);
     FadeoutPanel.SetActive(true);
     RegisterButton.SetActive(false);
 }
示例#2
0
    private IEnumerator Loading(string scene)
    {
        GameObject go = GameObject.Find("Canvas");
        Debug.Log(go);
        FadeoutPanel panel = go.GetComponentInChildren<FadeoutPanel>(true);

        if (panel != null)
        {
            StartCoroutine(panel.FadeOut(scene));
            while (panel.fading)
            {
                yield return null;
            }
        }

        if (scene != "MenuScene")
        {
            data.scene = scene;
        }
        SceneManager.LoadScene(scene);
    }