using System; using System.Collections; using System.Collections.Generic; using Cute; using UnityEngine; namespace Wizard; public class MyPageHomeDialog : MonoBehaviour { private DialogBase _dialog; private MyPageHomeDialogData _homeDialogData; public static void Create(GameObject prefab, MyPageHomeDialogData data, Action onFinish) { DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose(); GameObject obj = UnityEngine.Object.Instantiate(prefab); dialogBase.SetSize(DialogBase.Size.M); dialogBase.SetTitleLabel(data.DialogTitle); dialogBase.gameObject.SetActive(value: false); dialogBase.OnClose = delegate { data.Clear(); onFinish.Call(); }; MyPageHomeDialog component = obj.GetComponent(); component._dialog = dialogBase; component._homeDialogData = data; UIManager.GetInstance().createInSceneCenterLoading(); } }