using UnityEngine; using UnityEngine.UI; using QFramework; using System.Text.RegularExpressions; namespace QFramework.Example { public class UIGuideTipData : UIPanelData { public string targets; public string Names; public Vector2[] offestPos; } public partial class UIGuideTip : UIPanel { protected override void OnInit(IUIData uiData = null) { mData = uiData as UIGuideTipData ?? new UIGuideTipData(); // please add init code here TypeEventSystem.Global.Register((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject); } protected override void OnOpen(IUIData uiData = null) { if (uiData != null) { mData = uiData as UIGuideTipData ?? new UIGuideTipData(); } } protected override void OnShow() { } protected override void OnHide() { } protected override void OnClose() { } } }