Ejemplo n.º 1
0
        private void InitializeButtons()
        {
            buttons.Clear();

            foreach (Transform child in buttonParent)
            {
                AppBarButton appBarButton = child.GetComponent <AppBarButton>();
                if (appBarButton == null)
                {
                    throw new Exception("Found a transform without an AppBarButton component under buttonTransforms!");
                }

                appBarButton.InitializeButtonContent(this);
                // Set to invisible initially
                appBarButton.SetVisible(false);

                buttons.Add(appBarButton);
            }
        }