// Adiciona Feature na database void SetFeature(string feature, string platform = null) { // Seta Feature nao global (por plataforma) if (platform != null && platform != "") { feature += " | " + platform; } // Faz a conexao com o servidor enviando a feature GameJsonAuthConnection conn = new GameJsonAuthConnection(Flow.URL_BASE + "login/items/set_feature.php", OnSetFeature); WWWForm form = new WWWForm(); form.Add("feature", feature); conn.connect(form); }
// Adiciona Feature na database void SetFeature(string feature, string platform = null) { // Seta Feature nao global (por plataforma) if (platform != null && platform != "") feature += " | " + platform; // Faz a conexao com o servidor enviando a feature GameJsonAuthConnection conn = new GameJsonAuthConnection(Flow.URL_BASE + "login/items/set_feature.php", OnSetFeature); WWWForm form = new WWWForm(); form.Add("feature", feature); conn.connect(form); }
public static void Add(this WWWForm form, string fieldName, int i) { form.Add(fieldName, i.ToString()); }
public static void Add(this WWWForm form, string fieldName, string value) { form.Add(fieldName, value, Encoding.UTF8); }