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