// public void ShowCGList(AlbumController.EAlbumType albumType) { hideAllCGScrollView(); CGScrollView scrollView = getCGScrollView(albumType); if (null == scrollView) { Log.Error(string.Format("not found CGScrollView; {0}", albumType)); return; } scrollView.Show(); }
private void addAlbumType(AlbumController.EAlbumType albumType) { CGScrollView scrollView = Instantiate(PrefCGScrollView); scrollView.transform.SetParent(CGScrollViewListPanel.transform, false); scrollView.Set(AlbumId, albumType); scrollView.Hide(); _cgScrollViewList.Add(scrollView); AlbumTypeToggle toggle = Instantiate(PrefAlbumTypeToggle); toggle.transform.SetParent(ToggleGroup.transform, false); toggle.Set(ToggleGroup); toggle.Set(this, albumType); }