//LoopScrollPrefabRect 从池中取出时自动注册归属的菜单事件 public virtual void RegisterEvent(LoopScrollRect lsr, Transform link) { linkedTransID = lsr.GetInstanceID(); linkedTrans = link; MsgManager.Instance.Register(InternalEvent.UI_SCROLL_ELEMENT, OnUpdateInfo); }