public void ReturnFromRegistration()
    {
        HeadingText.GetComponent <TextMeshProUGUI>().text = "User Login";
        LoginButton.SetActive(true);
        LoginButtonCover.SetActive(true);
        UserLoginText.SetActive(true);
        PasswordText.SetActive(true);
        RegisterButton.SetActive(true);
        //RegisterName, RegisterPassword, RegisterLocation, RegisterAge, SubmitCoverButton, SubmitButton;
        RegisterName.SetActive(false);
        RegisterPassword.SetActive(false);
        RegisterLocation.SetActive(false);
        RegisterAge.SetActive(false);
        SubmitCoverButton.SetActive(false);
        SubmitButton.SetActive(false);
        Registering = false;

        if (netManager)
        {
            if (netManager.IsConnectedToServer())
            {
                netManager.AttemptAccountCreation(RegisterName.GetComponent <TMP_InputField>().text, RegisterPassword.GetComponent <TMP_InputField>().text);
            }
        }
    }
 public void StartRegistration()
 {
     LoginButton.SetActive(false);
     LoginButtonCover.SetActive(false);
     UserLoginText.SetActive(false);
     PasswordText.SetActive(false);
     HeadingText.GetComponent <TextMeshProUGUI>().text = "Register New Profile";
     RegisterButton.SetActive(false);
     //RegisterName, RegisterPassword, RegisterLocation, RegisterAge, SubmitCoverButton, SubmitButton;
     RegisterName.SetActive(true);
     RegisterPassword.SetActive(true);
     RegisterLocation.SetActive(true);
     RegisterAge.SetActive(true);
     SubmitCoverButton.SetActive(true);
     Registering = true;
 }