Example #1
0
    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;
    }
Example #2
0
    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;
    }
Example #3
0
 public ComputerSounds(A_Computer computer, GameObject soundHost) : base(soundHost, "Local/Computer")
 {
     _computer = computer;
     SetupSounds();
 }
Example #4
0
 public void SetButtons(A_Computer c)
 {
     Comp = c;
 }
Example #5
0
 public void SetExamController(A_Computer computer)
 {
     this.computer = computer;
     this.scholar  = false;
     Reset();
 }
Example #6
0
 public void Setup(ScholarComputer computer)
 {
     this.computer = computer;
     this.scholar  = true;
     Reset();
 }
Example #7
0
 public ComputerCommands(A_Computer c)
 {
     Comp = c;
     Do("Login");
 }