Exemplo n.º 1
0
        public static void SetupStyles(this MenuButton button)
        {
            LevelCategoryButton levelCategoryButton = GameStateMachine.Instance.LevelSelectionObject.GetComponentInChildren <LevelCategoryButton>();

            button.normalFont      = levelCategoryButton.normalFont;
            button.highlightedFont = levelCategoryButton.highlightedFont;
            button.transition      = levelCategoryButton.transition;
            button.colors          = levelCategoryButton.colors;
        }
Exemplo n.º 2
0
        private void Init()
        {
            LevelCategoryButton levelCategoryButton = GameStateMachine.Instance.LevelSelectionObject.GetComponentInChildren <LevelCategoryButton>();

            normalFont      = levelCategoryButton.normalFont;
            highlightedFont = levelCategoryButton.highlightedFont;
            transition      = levelCategoryButton.transition;
            color           = levelCategoryButton.colors;
        }