public void OnCookiesPressed() { string cookieValue = HttpCookie.GetCookie("SERVERID"); Output("Cookies: SERVERID=" + cookieValue); cookieValue = HttpCookie.GetCookies(); Output("Cookies: " + cookieValue); }
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!"); } }
public void OnGetCookieClick() { getCookieValueText.text = HttpCookie.GetCookie(cookieNameInputField.text); }