using UnityEngine; using UnityEngine.UI; using QFramework; using System.Text.RegularExpressions; using DG.Tweening; using System; using System.Collections.Generic; using System.Linq; namespace QFramework.Example { public class UIGuideTipData : UIPanelData { public string targets; public string showName; public string offestPos; } public partial class UIGuideTip : UIPanel { ResLoader loader; protected override void OnInit(IUIData uiData = null) { mData = uiData as UIGuideTipData ?? new UIGuideTipData(); // please add init code here loader = ResLoader.Allocate(); TypeEventSystem.Global.Register((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject); } protected override void OnOpen(IUIData uiData = null) { Debug.Log("OnOpean???"); if (uiData != null) { mData = uiData as UIGuideTipData ?? new UIGuideTipData(); Debug.Log(mData); List Objs = mData.targets.Split(',')?.ToList(); Debug.Log(Objs); } } private void Genter() { } protected override void OnShow() { } protected override void OnHide() { } protected override void OnClose() { } } }