public void Setup(A_Computer c) { Transform buf = transform.parent.Find("Screen"); task_bar = buf.Find("Task Bar").gameObject; program_bar = buf.Find("Program Bar").gameObject; program_name = program_bar.transform.GetComponentInChildren <TextMeshProUGUI>(); GameObject[] comp_windows = new GameObject[transform.childCount]; for (int i = 0; i < transform.childCount; i++) { comp_windows[i] = transform.GetChild(i).gameObject; } windows = new Dictionary <string, GameObject>(); foreach (GameObject i in comp_windows) { windows.Add(i.name, i); i.SetActive(false); } current_window = null; Computer = c; program_bar.SetActive(false); program_name.text = null; }
public void Setup(A_Computer c) { Transform buf = transform.Find("Login"); login = buf.Find("Input Field Login").GetComponent <InputFieldLogin>(); password = buf.Find("Input Field Password").GetComponent <InputFieldLogin>(); invalid = buf.Find("Error Message").GetComponent <TextMeshProUGUI>(); login.SetInputField(); password.SetInputField(); loged = false; Comp = c; }
public ComputerSounds(A_Computer computer, GameObject soundHost) : base(soundHost, "Local/Computer") { _computer = computer; SetupSounds(); }
public void SetButtons(A_Computer c) { Comp = c; }
public void SetExamController(A_Computer computer) { this.computer = computer; this.scholar = false; Reset(); }
public void Setup(ScholarComputer computer) { this.computer = computer; this.scholar = true; Reset(); }
public ComputerCommands(A_Computer c) { Comp = c; Do("Login"); }