Example #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;
    }