using UnityEngine; using UnityEngine.UI; namespace MoleMole { public class MonoSettingAccountTab : MonoBehaviour { public void SetupView() { bool flag = !string.IsNullOrEmpty(Singleton.Instance.manager.AccountUid); base.transform.Find("LogoutBtn").gameObject.SetActive(flag); base.transform.Find("BindAccountBtn").gameObject.SetActive(!flag); base.transform.Find("Content/Info/AccountName").gameObject.SetActive(flag); base.transform.Find("Content/Info/TryUserLabel").gameObject.SetActive(!flag); if (flag) { base.transform.Find("Content/Info/AccountName/Text").GetComponent().text = Singleton.Instance.manager.GetAccountName(); } base.transform.Find("Content/Info/PlayerId/Text").GetComponent().text = Singleton.Instance.playerData.userId.ToString(); GeneralLocalDataItem.AccountData account = Singleton.Instance.GeneralLocalData.Account; bool active = !flag || string.IsNullOrEmpty(account.email); bool active2 = flag && !string.IsNullOrEmpty(account.email) && !account.isEmailVerify; bool active3 = flag && !string.IsNullOrEmpty(account.email) && account.isEmailVerify; bool flag2 = !flag || string.IsNullOrEmpty(account.mobile); base.transform.Find("Content/Security/BindEmail/BindBtn").gameObject.SetActive(flag && string.IsNullOrEmpty(account.email)); base.transform.Find("Content/Security/BindEmail/Status/NotVerify").gameObject.SetActive(active2); base.transform.Find("Content/Security/BindEmail/Status/NotBind").gameObject.SetActive(active); base.transform.Find("Content/Security/BindEmail/Status/AlreadyBind").gameObject.SetActive(active3); Button component = base.transform.Find("Content/Security/BindEmail/VerifyBtn").GetComponent