示例#1
0
 void RefreshTabImages(MapEditorComponentType tabType)
 {
     foreach (var item in dicTabImages)
     {
         if (item.Key == tabType)
         {
             item.Value.gameObject.SetActive(true);
         }
         else
         {
             item.Value.gameObject.SetActive(false);
         }
     }
 }
示例#2
0
 void OnClickTab(MapEditorComponentType tabType)
 {
     this.RefreshTabImages(tabType);
     MapEditorUIMgr.ins.ShowPanel <UIPanelMapEditorDown>();
     MapEditorUIMgr.ins.GetPanel <UIPanelMapEditorDown>().LoadListView((int)tabType);
 }