﻿using AsmodeeDigital.Common.Plugin.UI;
using System;
using UnityEngine.UI;

namespace AsmodeeDigital.AccountManagement.Samples.UI
{
    public class PopupWelcome : Popup
    {
        /// <summary>
        /// UI references of PopupWelcome
        /// </summary>
        [Serializable]
        public class UIPopupWelcome
        {
            public InputField Email;
            public Toggle SubscribeNewsletter;
            public Text ErrorMessage;
        }

        public UIPopupWelcome uiPopupWelcome;

        public override void Show()
        {
            uiPopupWelcome.Email.text = string.Empty;
            uiPopupWelcome.ErrorMessage.gameObject.SetActive(false);

            base.Show();
        }
    }
}
