예제 #1
0
    private void _updateHimes()
    {
        SolaEngine engine = SolaEngine.getInstance();
        HeroMgr    hMgr   = (HeroMgr)engine.getMgr(typeof(HeroMgr));

        List <HeroModel> totalHero = hMgr.getTotalHero();

        himeScroll.reset();
        foreach (HeroModel model in totalHero)
        {
            ToBattleSelectItem item = (ToBattleSelectItem)MonoBehaviour.Instantiate(himeInstance);

            item.setModel(model);
            himeScroll.addItem(item);

            _selectItems.Add(item);
            item.onClicked += _onSelectedHero;
        }
    }