Esempio n. 1
0
 private void OnLadder_ShrinkHistoryItem(CUIEvent uiEvent)
 {
     if (uiEvent.m_srcWidget && uiEvent.m_srcWidget.transform.parent)
     {
         Transform parent = uiEvent.m_srcWidget.transform.parent.parent;
         if (parent)
         {
             CLadderView.OnHistoryItemChange(parent.gameObject, false);
             CUIEventScript component = uiEvent.m_srcWidget.GetComponent <CUIEventScript>();
             if (component)
             {
                 component.m_onClickEventID = enUIEventID.Ladder_ExpandHistoryItem;
             }
         }
     }
 }