using DG.Tweening; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; namespace AppUI.Manager { public class ModuleGuestManager : 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 ModuleGuestManager Show() { GameObject o = GameObject.Instantiate(Resources.Load("Manager/ModuleGuestView")); ModuleGuestManager 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