Beispiel #1
0
    private void SetAllTabItems(TabsMenuItem menuItem)
    {
        foreach (GameObject item in tabsMenuButtons)
        {
            item.GetComponent <TabsMenuItem>().isActive = false;
            item.GetComponent <TabsMenuItem>().SetMenuItemState();
        }

        menuItem.isActive = true;
        menuItem.SetMenuItemState();
    }
Beispiel #2
0
 public void ToggleTabs(GameObject tab, TabsMenuItem menuItem)
 {
     CloseAllTabs();
     SetAllTabItems(menuItem);
     tab.SetActive(true);
 }