private void Start() { uiText.text = "---"; LeanWindow myWindow = this.GetComponent <InstantiateTerminal>().GetMyWindow(); var = myWindow.transform.Find("Panel/var_vet_mat").GetComponent <Var_Vet_Mat>(); }
// Start is called before the first frame update void Awake() { GameObject terminal = GameObject.Find("UI/Terminal") as GameObject; myLeanWindow = Instantiate(leanWindowPrefab, new Vector3(Screen.width / 2, Screen.height / 2, 0), Quaternion.identity); myLeanWindow.transform.SetParent(terminal.transform, true); }
private void Start() { uiText.text = "---"; LeanWindow myWindow = this.GetComponent <InstantiateTerminal>().GetMyWindow(); var = myWindow.transform.Find("Panel/Operandos/var_vet_mat").GetComponent <Var_Vet_Mat>(); op = myWindow.transform.Find("Panel/Operandos/Operador/Label").GetComponent <TextMeshProUGUI>(); val = myWindow.transform.Find("Panel/Operandos/num_var_vet_mat").GetComponent <Num_Var_Vet_Mat>(); oldOp = op.text; }
private void Start() { LeanWindow myWindow = this.GetComponent <InstantiateTerminal> ().GetMyWindow(); var = myWindow.transform.Find("Panel/Description/Name/Nome").GetComponent <TMP_InputField> (); typeInput = myWindow.transform.Find("Panel/tipo/Label").GetComponent <TextMeshProUGUI> (); oldVar = var.text; oldType = typeInput.text; type = GetNewType(oldType); ToUI(); }
private void Start() { uiText.text = "---"; LeanWindow myWindow = this.GetComponent <InstantiateTerminal>().GetMyWindow(); var = myWindow.transform.Find("Panel/Operandos/var_vet_mat").GetComponent <Var_Vet_Mat>(); op = myWindow.transform.Find("Panel/Operandos/Incremento/Label").GetComponent <TextMeshProUGUI>(); initial = myWindow.transform.Find("Panel/Operandos/de/Entrada").GetComponent <TMP_InputField>(); end = myWindow.transform.Find("Panel/Operandos/ate/Entrada").GetComponent <TMP_InputField>(); oldOp = op.text; oldEnd = end.text; oldInitial = initial.text; }
private void Awake() { uiText.text = "---"; TerminalEventManager.instance.resetEvent.AddListener(Reset); if (windowGO == null) { return; } GameObject terminal = GameObject.Find("/Terminal"); GameObject go = Instantiate(windowGO, terminal.transform); window = go.transform.GetComponent <LeanWindow> (); window.GetComponent <BlockWindow>().myBlock = this.GetComponent <TerminalBlocks>(); }
private void Start() { uiText.text = "---"; LeanWindow myWindow = this.GetComponent <InstantiateTerminal> ().GetMyWindow(); i = myWindow.transform.Find("Panel/Operandos/Operando 2/Entrada").GetComponent <TMP_InputField> (); j = myWindow.transform.Find("Panel/Operandos/Operando 2 (1)/Entrada").GetComponent <TMP_InputField> (); var = myWindow.transform.Find("Panel/Operandos/Description/Name/Nome").GetComponent <TMP_InputField> (); typeInput = myWindow.transform.Find("Panel/Operandos/tipo/Label").GetComponent <TextMeshProUGUI> (); oldVar = var.text; oldI = i.text; oldJ = j.text; oldType = typeInput.text; type = GetNewType(oldType); }
// Update is called once per frame private void OnDestroy() { Destroy(myLeanWindow.gameObject); myLeanWindow = null; }