public void LoginSendParamsToDB() { bool userExist = false; GameObject db = GameObject.Find("DB"); main main = db.GetComponent <main>(); userExist = main.CheckLogin(username.text.ToString(), password.text.ToString()); if (userExist == true) { Debug.Log("exist"); panel.showShop(); loged = true; usernameLoged.text = username.text.ToString(); } else { Debug.Log("no exist"); wrongUser.SetActive(true); } }