public RemoteAssetBundleGUITabs(List <RemoteAssetBundleGUITab> tabList)
 {
     Tabs           = tabList;
     Tabs[0].Active = true;
     ActiveTab      = Tabs[0];
     SetCallback();
 }
 public void HandleActiveTab(int index)
 {
     ActiveTab = Tabs[index];
     Tabs.ForEach(delegate(RemoteAssetBundleGUITab tab)
     {
         if (tab.TabIndex != index)
         {
             tab.Active = false;
         }
     });
 }
 public void AddTab(RemoteAssetBundleGUITab tab)
 {
     tab.OnActive += HandleActiveTab;
     Tabs.Add(tab);
 }