void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("project_id", projectId.ToString());
        but.addParam("project_name", projectName);
        but.SendToDispatch();
    }
    public void CallDispatcher(string json)
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("id", idToModify.ToString());
        but.addParam("project_name", projectName);
        but.SendToDispatch();
    }
Esempio n. 3
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("project_id", projectId);
        but.addParam("id", id);
        but.SendToDispatch();
    }
Esempio n. 4
0
    public void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("rule_id", ruleId.ToString());
        but.addParam("project_id", projectId.ToString());
        but.addParam("card_id", cardId.ToString());
        but.SendToDispatch();
    }
Esempio n. 5
0
    void CallDispatcher(string json)
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("id", projectId);
        but.addParam("project_id", projectId);
        but.addParam("project_name", projectName);
        but.SendToDispatch();
    }
    void callDispatcher(string json)
    {
        print("call");
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("project_id", projectId.ToString());
        but.addParam("id", projectId.ToString());
        but.SendToDispatch();
    }
    public void applyInServerResponse(string json)
    {
        Dictionary <string, object> resp = DeserializeJson <Dictionary <string, object> >(json);
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("id", projectId);
        but.addParam("project_id", projectId);
        but.addParam("project_name", projectName);
        but.SendToDispatch();
    }
    void click()
    {
        ButtonListener but      = gameObject.GetComponent <ButtonListener>();
        ModelCard      ModelScr = Model.GetComponent <ModelCard>();

        //  ModelScr.addCollections("ENTER new card name", "ENTER new description", projectId.ToString());
        //  but.addParam("id", (ModelScr.getNbElement()).ToString());
        but.addParam("project_id", projectId.ToString());
        but.addParam("card_id", idToModify.ToString());
        but.addParam("project_name", projectName);
        but.SendToDispatch();
    }
    public void applyInServerResponse(string json)
    {
        model = GameObject.Find("ModelRessource");
        ModelRessource modelScr          = model.GetComponent <ModelRessource>();
        Dictionary <string, object> resp = DeserializeJson <Dictionary <string, object> >(json);
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("id", projectId);
        but.addParam("project_id", projectId);
        but.addParam("project_name", projectName);
        print(modelScr.getNbElement());

        but.SendToDispatch();
    }
    void click()
    {
        ModelTest      ModelScript = Model.GetComponent <ModelTest>();
        ButtonListener but         = gameObject.GetComponent <ButtonListener>();

        but.addParam("description", desc.GetComponent <TMP_InputField>().text);
        but.addParam("name", name.GetComponent <TMP_InputField>().text);
        but.addParam("max", max.GetComponent <TMP_InputField>().text);

        Dictionary <string, string> param = but.getParam();

        ModelScript.addCollections(param["name"], param["max"], param["description"], "0", "0", applyInServerResponse);
        param.Clear();
    }
Esempio n. 11
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("id", idToModify.ToString());
        but.SendToDispatch();
    }
    void click()
    {
        /* inputName = GameObject.Find("InputProjectName");
         * inputMin = GameObject.Find("InputMinPlayer");
         * inputMax = GameObject.Find("InputMaxPlayer");*/

        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        if (but != null)
        {
            but.addParam("name", inputName.GetComponent <TMP_InputField>().text);
            but.addParam("min", inputMin.GetComponent <TMP_InputField>().text);
            but.addParam("max", inputMax.GetComponent <TMP_InputField>().text);
            //  but.addParam("description", inputDesc.GetComponent<TextMeshProUGUI>().text);
        }
        but.SendToDispatch();
    }
    void callDispatcher(string json)
    {
        print("call");
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        if (but)
        {
            but.addParam("project_id", projectId);
            but.addParam("id", projectId);
            but.addParam("project_name", projectName);
            but.SendToDispatch();
        }
        else
        {
            Destroy(gameObject.transform.parent.gameObject);
        }
    }
Esempio n. 14
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        // Dictionary<string, string> param = new Dictionary<string, string>();


        but.addParam("id", projectId.ToString());
        print(but.getParam());
        but.SendToDispatch();
    }