void LostFocus(UserEvent eve, UserAction action) { if (action.ExistFocus(callBack)) { action.AddFocus(eve); } else { //m_scroll.Enity.gameObject.SetActive(false); showAni = -1; showTime = 0; } }
void Show(UserEvent back, UserAction action) { if (m_scroll != null) { if (!m_scroll.Enity.activeSelf) { m_scroll.Enity.activeSelf = true; action.AddFocus(m_scroll.eventCall); showAni = 1; showTime = 0; size = m_scroll.Enity.SizeDelta; m_scroll.Enity.SizeDelta = new Vector2(size.x, 0); } } }
void Show(EventCallBack back, UserAction action) { if (m_scroll != null) { if (ItemMod != null) { m_scroll.ItemMod = ItemMod; } m_scroll.BindingData = BindingData; m_scroll.SetItemUpdate <object, object>(ItemUpdate); m_scroll.eventCall.LostFocus = LostFocus; m_scroll.eventCall.DataContext = this; main.SetAsLastSibling(); Dock(); action.AddFocus(m_scroll.eventCall); } }