示例#1
0
    // 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);
    }
示例#2
0
	// 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);
    }
示例#3
0
 public static void Add(this WWWForm form, string fieldName, int i)
 {
     form.Add(fieldName, i.ToString());
 }
示例#4
0
 public static void Add(this WWWForm form, string fieldName, string value)
 {
     form.Add(fieldName, value, Encoding.UTF8);
 }