Ejemplo n.º 1
0
    public void SetData(VisitLevelVo info, VisitBattleModel battleModel)
    {
        _info        = info;
        _battleModel = battleModel;

        _battleModel.FilterCard();

        ResetMiddleHeroCard();
        transform.Find("BgTop/NeedStrengthText").GetComponent <Text>().text =
            I18NManager.Get("Visit_Hint1") + ViewUtil.AbilitiesToString(info.Abilitys);
        transform.Find("BgTop/Panel/Original/ValueText").GetComponent <Text>().text   = "0";
        transform.Find("BgTop/Panel/Glamour/ValueText").GetComponent <Text>().text    = "0";
        transform.Find("BgTop/Panel/Popularity/ValueText").GetComponent <Text>().text = "0";
        transform.Find("BgTop/Panel/Sing/ValueText").GetComponent <Text>().text       = "0";
        transform.Find("BgTop/Panel/Dancing/ValueText").GetComponent <Text>().text    = "0";
        transform.Find("BgTop/Panel/Willpower/ValueText").GetComponent <Text>().text  = "0";
        _smallCardList.RefreshCells();
        _smallCardList.totalCount = _battleModel.UserCardList.Count;
    }
Ejemplo n.º 2
0
    private void OnTabClick(GameObject go)
    {
        switch (go.name)
        {
        case "AllBtn":
            _battleModel.FilterCard();
            break;

        case "OriginalBtn":
            _battleModel.FilterCard((int)AbilityPB.Composing);
            break;

        case "GlamourBtn":
            _battleModel.FilterCard((int)AbilityPB.Charm);
            break;

        case "PopularityBtn":
            _battleModel.FilterCard((int)AbilityPB.Popularity);
            break;

        case "SingBtn":
            _battleModel.FilterCard((int)AbilityPB.Singing);
            break;

        case "DanceBtn":
            _battleModel.FilterCard((int)AbilityPB.Dancing);
            break;

        case "WillpowerBtn":
            _battleModel.FilterCard((int)AbilityPB.Perseverance);
            break;
        }

        _smallCardList.RefreshCells();
        _smallCardList.totalCount = _battleModel.UserCardList.Count;
    }