public void setProjectId(int id)//!\DEPRECATED DO NOT USE IT EXEPT IF API GET BACK TO PREVIOUS VERSION { projectId = id; ModelRessource modelRes = GameObject.Find("ModelRessource").GetComponent <ModelRessource>(); modelRes.getAll(projectId.ToString(), applyinResponse); }
public void setProjectName(string name) { projectName = name; ModelRessource modelRes = GameObject.Find("ModelRessource").GetComponent <ModelRessource>(); modelRes.getAll(projectName, applyinResponse); }
public override void apply() { GameObject modelRessource; GameObject modelCard; GameObject modelPhases; projectId = int.Parse(args["project_id"]); projectName = args["project_name"]; modelRessource = GameObject.Find("ModelRessource"); modelCard = GameObject.Find("ModelCard"); modelPhases = GameObject.Find("ModelPhases"); ModelRessource modelResScr = modelRessource.GetComponent <ModelRessource>(); modelResScr.getAll(projectName, applyInRessource); modelPhases.GetComponent <ModelPhases>().getAll(projectName, applyForPhases); ConfirmVisualCard butScr = confirmButton.GetComponent <ConfirmVisualCard>(); butScr.setIdToModify(-1); butScr.setProjectId(projectId.ToString()); butScr.setProjectName(projectName); CancelRessourceCreation rmScr = removeButton.GetComponent <CancelRessourceCreation>(); rmScr.setProjectId(projectId.ToString()); rmScr.setProjectName(projectName); /*createRuleButton.GetComponent<CreateCardButton>().setIdToModify(cardId); * createRuleButton.GetComponent<CreateCardButton>().setProjectId(projectId); * RulesListButton.GetComponent<CreateCardButton>().setIdToModify(cardId); * RulesListButton.GetComponent<CreateCardButton>().setProjectId(projectId);*/ }
public override void apply() { GameObject model; projectId = int.Parse(args["project_id"]); model = GameObject.Find("ModelRessource"); ModelRessource modelScript = model.GetComponent <ModelRessource>(); modelScript.getAll(projectId.ToString(), applyInServerResponse); overviewButton.GetComponent <OverviewButton>().setCurrentProjectId(projectId); createRessourceButton.GetComponent <CreateRessourceButton>().setProjectId(projectId); }
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); }