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() { ComfirmRessourceCreation butScr = confirmButton.GetComponent <ComfirmRessourceCreation>(); butScr.setProjectId(args["project_id"]); butScr.setProjectName(args["project_name"]); CancelRessourceCreation cancelBut = cancelButton.GetComponent <CancelRessourceCreation>(); cancelBut.setProjectId(args["project_id"]); cancelBut.setRessourceId(args["project_id"]); cancelBut.setProjectName(args["project_name"]); }