using AppUI.Manager.View; using DG.Tweening; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; namespace AppUI.View.Component { public class ModuleGuestView : MonoBehaviour { public string text; public string textKey; public object[] textFormatArgs = { }; public UnityAction onLogin; //public string onAgreeTextKey; public UnityAction onSignUp; //public string onRejectTextKey; public UnityAction onGuestMode; public bool willDestroyAfterClick = true; public static ModuleGuestView Show() { GameObject o = Instantiate(ViewManager.GetPrefabByType(UIPrefabType.ModuleGuestView)); ModuleGuestView v = o.AddComponent(); return v; } void Start() { //if (textKey != null) //{ // TextAutoLanguage2 t2 = transform.Find("Frame/Text").gameObject.AddComponent(); // t2.textFormatArgs = textFormatArgs; // t2.SetTextKey(textKey); //} //else //{ // transform.Find("Frame/Text").GetComponent().text = text; //} Transform BtnLogin = transform.Find("Frame/BtnLogin"); BtnLogin.GetComponent