Ejemplo n.º 1
0
    private void OnGetCardTotalNum(DrawProbRes res)
    {
        LoadingOverlay.Instance.Hide();
        DrawData drawData = GetData <DrawData>();

        drawData.InitData(res);
        _view.SetTotalNum(drawData.GetTotalNum(DrawEventPB.GemBase));
    }
Ejemplo n.º 2
0
    private void OnGetCardList(DrawProbRes res)
    {
        LoadingOverlay.Instance.Hide();
        DrawData drawData = GetData <DrawData>();

        drawData.InitData(res);

        int id = GlobalData.ConfigModel.GetConfigByKey(GameConfigKey.DRAW_GEM_ITEM_ID);

        UserPropVo propVo = GlobalData.PropModel.GetUserProp(id);

        View.SetData(drawData.GetOwnNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GemBase),
                     drawData.GetTotalNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GemBase),
                     drawData.GetOwnNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GoldBase),
                     drawData.GetTotalNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GoldBase),
                     drawData.GetOwnNum(DrawPoolTypePB.DrawPoolActivity, DrawEventPB.GemBase),
                     drawData.GetTotalNum(DrawPoolTypePB.DrawPoolActivity, DrawEventPB.GemBase),
                     CostNum,
                     propVo.Num
                     );
    }