IEnumerator Login_Users(string username, string password) { WWWForm form = new WWWForm(); //form.AddField(method_type, "login_user"); form.AddField("player_username", username); form.AddField("player_password", password); WWW www = new WWW(login_URL, form); yield return(www); if (www.error == null) { Debug.Log(www.text); //string statuscode = JsonHelper.JsonHelper.GetJsonObject(www.text, "statuscode"); string statuscode = JSonManager.GetDataFromJSON(www.text, "statuscode"); string statusMsg = JSonManager.GetDataFromJSON(www.text, "message"); PlayerDetail_List(JSonManager.GetSpecificDatabjectListFromJSON(www.text, "player")); if (statuscode == "2") { Game.Loggedin_OK = true; Debug.Log("Login Success"); Application.LoadLevel(1); } else { Game.Loggedin_OK = false; //UI_Manager.getInstance. uiScript.ErrorText_Show("Login", statusMsg); } } else { Debug.Log("Fail : " + www.error); } }