public ChatInfo2BulletCurtain CreatePrefab2BulletCurtain()
    {
        ChatInfo2BulletCurtain chatInfo2BulletCurtain = BulletCurtainManager.BulletCurtainPool.Get(string.Empty).AddMissingComponent <ChatInfo2BulletCurtain>();

        chatInfo2BulletCurtain.get_gameObject().get_transform().set_localScale(Vector3.get_one());
        return(chatInfo2BulletCurtain);
    }
 public void Reuse2BulletCurtains(ChatInfo2BulletCurtain gridUI)
 {
     if (gridUI != null && gridUI.get_gameObject() != null)
     {
         gridUI.Clear();
         BulletCurtainManager.BulletCurtainPool.ReUse(gridUI.get_gameObject());
     }
 }
 private void PopOne()
 {
     if (this.BulletCurtainNews.get_Count() > 0)
     {
         ChatManager.ChatInfo chatInfo = this.BulletCurtainNews.get_Item(0);
         this.BulletCurtainNews.RemoveAt(0);
         if (this.CheckIsBulletCurtainOn(chatInfo.src_channel))
         {
             ChatInfo2BulletCurtain gridUI = this.CreatePrefab2BulletCurtain();
             this.BulletCurtainUnits.Add(gridUI);
             gridUI.SetChat(chatInfo, delegate
             {
                 this.BulletCurtainUnits.Remove(gridUI);
                 this.Reuse2BulletCurtains(gridUI);
             });
         }
         else
         {
             this.PopOne();
         }
     }
 }