예제 #1
0
    public void OnCookiesPressed()
    {
        string cookieValue = HttpCookie.GetCookie("SERVERID");

        Output("Cookies: SERVERID=" + cookieValue);
        cookieValue = HttpCookie.GetCookies();
        Output("Cookies: " + cookieValue);
    }
예제 #2
0
    private void GetUserData()
    {
        if (!Application.isEditor)
        {
            alias = HttpCookie.GetCookie("ALIAS");
        }

        if (alias != "")
        {
            StartCoroutine(NetworkManager.GetUserData(alias, userData =>
            {
                gameData.userAlias = userData.alias;
                CanvasManager.Instance.LoadUserDataAndShowMenu(userData);
            }));
        }
        else
        {
            Debug.LogWarning("No ALIAS founded!");
        }
    }
예제 #3
0
 public void OnGetCookieClick()
 {
     getCookieValueText.text = HttpCookie.GetCookie(cookieNameInputField.text);
 }