public void SetLevel(TeacherComputer computer) { _computer = computer; _cursor.SetLevel(); _camera.SetLevel(); Enable(false); }
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); }