コード例 #1
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();
    }
コード例 #2
0
    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();
    }