Exemplo n.º 1
0
 void OnActivityListUpdate(UIGridBase grid, int index)
 {
     if (grid is UIActivityRewardListGrid)
     {
         UIActivityRewardListGrid data = grid as UIActivityRewardListGrid;
         if (m_lst_RewDatas != null)
         {
             if (index < m_lst_RewDatas.Count)
             {
                 data.SetGridData(m_lst_RewDatas[index]);
             }
         }
     }
 }
Exemplo n.º 2
0
 void OnActivityGridUIEvent(UIEventType eventType, object data, object param)
 {
     switch (eventType)
     {
     case UIEventType.Click:
         if (data is UIActivityRewardListGrid)
         {
             UIActivityRewardListGrid toggleGrid = data as UIActivityRewardListGrid;
             if (toggleGrid != null)
             {
                 DataManager.Manager <UIPanelManager>().ShowPanel(PanelID.ActivityRewardPanel, data: toggleGrid.m_data);
             }
         }
         break;
     }
 }