private BarrageItem GetNormalBarrageItem(ControversyBarrageConfig barrageConfig)
        {
            BarrageItem item = new BarrageItem()
            {
                ID = barrageConfig.ID, IsSpecial = false
            };

            item.Items        = ProcessBarrageText(item, barrageConfig.text);
            item.CorrectIndex = barrageConfig.correctIndex;
            item.BornTime     = barrageConfig.bornTime;
            return(item);
        }
        private void InitBarrageInfo()
        {
            var barrageInfos = ControversyBarrageConfig.GetAllConfig();

            foreach (var barrageInfo in barrageInfos)
            {
                if (!m_normalBarrageInfo.ContainsKey(barrageInfo.Value.groupID))
                {
                    m_normalBarrageInfo.Add(barrageInfo.Value.groupID, new List <ControversyBarrageConfig>());
                }
                m_normalBarrageInfo[barrageInfo.Value.groupID].Add(barrageInfo.Value);
            }
        }
        private void SendBarrage(UI_Judgment_ControversyBarrage_Item_SubView subView, BarrageItem itemInfo)
        {
            Transform parent;
            int       track;

            if (itemInfo.IsSpecial)
            {
                track = ControversySpecialBarrageConfig.GetConfigByKey(itemInfo.ID).track;
            }
            else
            {
                track = ControversyBarrageConfig.GetConfigByKey(itemInfo.ID).track;
            }

            switch (track)
            {
            case 1:
                parent = m_go_beginLine1;
                break;

            case 2:
                parent = m_go_beginLine2;
                break;

            case 3:
                parent = m_go_beginLine3;
                break;

            case 4:
                parent = m_go_beginLine4;
                break;

            default:
                parent = m_go_beginLine1;
                break;
            }
            subView.transform.SetParent(parent);
            subView.transform.localScale    = Vector3.one;
            subView.transform.localPosition = Vector3.zero;
            subView.SetInfo(itemInfo, m_dictance);
            if (!m_barrageSubViews.ContainsKey(itemInfo.ID))
            {
                m_barrageSubViews.Add(itemInfo.ID, subView);
            }
        }