Beispiel #1
0
        public BattleActionMenuItems getCurrentMenu(List <Action> actions)
        {
            _actions = actions;

            _categoryPool.ForEach(x => x.gameObject.SetActive(false));
            _actionPool.ForEach(x => x.gameObject.SetActive(false));

            BattleActionMenuItems menuGO = new BattleActionMenuItems();;

            menuGO.categoryItems = instantiateMenu();

            return(menuGO);
        }
Beispiel #2
0
        public override void initMenu(List <Action> settersList)
        {
            // reset the previously selected Go (set when switching from category to action...)
            _selectedCategory = null;
            _selectedAction   = null;

            // create the menu
            _menuSetter = new BattleMenuSetter(_categoriesPool, _actionsPool);
            _menuGO     = _menuSetter.getCurrentMenu(settersList);
            setOnClick();
            setNavigation();

            // set the scroll content
            _scrollViewUpdater.setContent(_menuParent);
        }