MIF_E31222569/Assets/ToothyV/Scripts/UI/ForgotPasword.cs

31 lines
765 B
C#

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";
}
}
}