Beispiel #1
0
    public void  SetLevel(TeacherComputer computer)
    {
        _computer = computer;

        _cursor.SetLevel();
        _camera.SetLevel();

        Enable(false);
    }
Beispiel #2
0
    public void  Setup()
    {
        Computer = GetComponent <TeacherComputer>();
        Transform screen = transform.Find("Screen").Find("UI").Find("Canvas").Find("Screen");

        cursor  = screen.Find("Cursor").gameObject;
        pointer = screen.Find("Cursor").Find("Pointer").GetComponent <Image>();
        finger  = screen.Find("Cursor").Find("Select").GetComponent <Image>();
        ChangeImage("pointer");

        Cam          = transform.Find("Screen").GetComponentInChildren <CinemachineVirtualCamera>();
        normRotation = Cam.transform.rotation;

        zoom    = false;
        moving  = false;
        zooming = false;

        Enable(false);
    }