public void DangNhap() { for (int i = 1; i <= demTK; i++) { tk.LayThongTinTaiKhoan(i); if (tk.TenTK == tenDNL.text && tk.Pass == passL.text) { PlayerPrefs.SetInt("idTKCurrent", i); PlayerPrefs.SetString("tenCurrent", tk.TenNV); SceneManager.LoadScene(2); return; } } MBPanel.GetComponent <MessBox>().textThongBao.text = "Wrong username or password!"; MBPanel.SetActive(true); }