Exemplo n.º 1
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.SendToDispatch();
        Destroy(this.transform.parent.gameObject);
    }
Exemplo n.º 2
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("project_id", projectId.ToString());
        but.SendToDispatch();
    }
Exemplo n.º 3
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.addParam("id", idToModify.ToString());
        but.SendToDispatch();
    }
    public void CallDispatcher(string json)
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

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

        but.addParam("project_id", projectId);
        but.addParam("id", id);
        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();
    }
Exemplo n.º 7
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();
    }
Exemplo n.º 8
0
    void click()
    {
        ButtonListener but      = gameObject.GetComponent <ButtonListener>();
        ModelRessource ModelScr = Model.GetComponent <ModelRessource>();

        but.addParam("project_id", projectId.ToString());
        but.addParam("project_name", projectName);
        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();
    }
Exemplo n.º 10
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();
    }
    void click()
    {
        model = GameObject.Find("Model");
        ModelTest modelScr = model.GetComponent <ModelTest>();

        modelScr.removeElem(idToRemove);

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

        but.SendToDispatch();
    }
Exemplo n.º 12
0
    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();
    }
Exemplo n.º 14
0
    void applyInResponseServer(string json)
    {
        TMP_Text       msg = loginMessage.GetComponent <TMP_Text>();
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        if (json.Equals("none"))
        {
            msg.text = "Wrong password or email";
        }
        else
        {
            but.SendToDispatch();
        }
    }
Exemplo n.º 15
0
    void applyInServerResponse(string json)
    {
        Dictionary <string, object> resp = DeserializeJson <Dictionary <string, object> >(json);
        int id = int.Parse(resp["id"].ToString());

        print(id);
        Dictionary <string, string> param = new Dictionary <string, string>();

        param.Add("id", id.ToString());
        param.Add("project_name", resp["name"].ToString());
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.setParams(param);
        but.SendToDispatch();
    }
Exemplo n.º 16
0
    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);
        }
    }
Exemplo n.º 17
0
    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();
    }
Exemplo n.º 18
0
    void click()
    {
        ButtonListener but = gameObject.GetComponent <ButtonListener>();

        but.SendToDispatch();
    }