public override void apply()
    {
        GameObject model;

        projectId = int.Parse(args["project_id"]);
        model     = GameObject.Find("ModelCard");
        ModelCard modelScript = model.GetComponent <ModelCard>();

        modelScript.getAll(projectId.ToString(), applyInServerResponse);

        overviewButton.GetComponent <OverviewButton>().setCurrentProjectId(projectId);
        createCardButton.GetComponent <CreateCardButton>().setProjectId(projectId);
    }
Ejemplo n.º 2
0
    public override void apply()
    {
        Model = GameObject.Find("Model");

        ModelRessources = GameObject.Find("ModelRessource");

        modelPhases = GameObject.Find("ModelPhases");
        ModelCards  = GameObject.Find("ModelCard");

        foreach (KeyValuePair <string, string> arg in args)
        {
            id = int.Parse(args["id"]);
        }
        projectName = args["project_name"];
        Model       = GameObject.Find("Model");
        newResBut.GetComponent <CreateRessourceButton>().setProjectId(id);
        newResBut.GetComponent <CreateRessourceButton>().setProjectName(projectName);
        createPhaseBut.GetComponent <CreateRessourceButton>().setProjectId(id);
        createPhaseBut.GetComponent <CreateRessourceButton>().setProjectName(projectName);
        updateProj.GetComponent <ConfirmModifyButton>().setIdToModify(id);
        updateProj.GetComponent <ConfirmModifyButton>().setProjectName(projectName);
        createCardBut.GetComponent <CreateCardButton>().setProjectId(id);
        createCardBut.GetComponent <CreateCardButton>().setProjectName(projectName);
        createRuleBut.GetComponent <CreateCardButton>().setProjectName(projectName);
        ModelTest ModelScript = Model.GetComponent <ModelTest>();

        ModelScript.find(projectName, applyInServerResponse);
        ModelCard modelCardScript = ModelCards.GetComponent <ModelCard>();

        modelCardScript.getAll(projectName, applyForCards);
        ModelRessource ModelRessourceScr = ModelRessources.GetComponent <ModelRessource>();

        ModelRessourceScr.getAll(projectName, applyForRessource);
        ModelPhases modelPhasesScr = modelPhases.GetComponent <ModelPhases>();

        modelPhasesScr.getAll(projectName, applyForPhases);
    }