private void HandleLogin(string[][] response) { foreach (string[] pair in response) { if (pair[0].Equals("userId")) { int IdTmp = -1; int.TryParse(pair[1], out IdTmp); HideMenu(); UserStatics.SetUserLoggedIn(IdTmp, inputName.GetComponent <InputField> ().text); return; } } }