// Start is called before the first frame update void Start() { ManageButton.onClick.AddListener(ManageButtonOnClick); ReturnButton.onClick.AddListener(ReturnButtonOnClick); ShopButton.onClick.AddListener(ShopButtonOnClick); CloseSessionButton.onClick.AddListener(CloseSessionButtonOnClick); ChangePasswordButton.onClick.AddListener(ChangePasswordButtonOnClick); DeleteProfileButton.onClick.AddListener(DeleteProfileButtonOnClick); //Update user info StartCoroutine(ProfileRequest(UserDataScript.getInfo("token"))); //Show new user info InfoText.text = "Usuario: " + UserDataScript.getInfo("username") + "\n" + "Email: " + UserDataScript.getInfo("email") + "\n\n" + "Pregunta: " + UserDataScript.getInfo("question") + "\n" + "Respuesta: " + UserDataScript.getInfo("answer") + "\n\n" + "Partidas jugadas: " + UserDataScript.getPlayed() + "\n" + "Partidas ganadas:" + UserDataScript.getWins() + "\n"; Username.text = UserDataScript.getInfo("username"); ManageCanvas.SetActive(false); }