using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class ForgotPasword : MonoBehaviour { [SerializeField] private TextMeshProUGUI emailTxt; [SerializeField] private TextMeshProUGUI passwordTxt; private void OnEnable() { string email = PlayerPrefs.GetString("emailLogin"); string password = PlayerPrefs.GetString("passwordLogin"); Debug.Log(email); Debug.Log(password); if (email != "" && password != "") { emailTxt.text = email; passwordTxt.text = password; } else { emailTxt.text = "Belum Register"; passwordTxt.text = "Belum Register"; } } }