Esempio n. 1
0
        private void OnEnable()
        {
            if (navigationEntryPreFab != null)
            {
                navigationEntryPreFab.SetActive(false);
            }
            if (togglePreFab != null)
            {
                togglePreFab.SetActive(false);
            }
            if (rangePreFab != null)
            {
                rangePreFab.SetActive(false);
            }
            if (selectionPreFab != null)
            {
                selectionPreFab.SetActive(false);
            }

            GameObjectUtils.ClearChildren(navigationContent.transform);
            GameObjectUtils.ClearChildren(bodyContent.transform);
            SetupSettings();
            tabController.ChangePage(tabController.TabPageDict.FirstOrDefault().Key);

            tabController ??= GetComponent <TabController>();
        }