Beispiel #1
0
 public void ReleaseContentList()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null))
     {
         this.m_ContentController.Release();
     }
     this.m_ContentSource = (FriendPresentGaveWindow.Content.ItemSource)null;
 }
Beispiel #2
0
 public void InitializeContentList()
 {
     this.ReleaseContentList();
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_ContentSource = new FriendPresentGaveWindow.Content.ItemSource();
     for (int index = 0; index < this.m_FriendUidList.Count; ++index)
     {
         FriendPresentGaveWindow.Content.ItemSource.ItemParam itemParam = new FriendPresentGaveWindow.Content.ItemSource.ItemParam(this.m_FriendUidList[index]);
         if (itemParam.IsValid())
         {
             this.m_ContentSource.Add(itemParam);
         }
     }
     this.m_ContentController.Initialize((ContentSource)this.m_ContentSource, Vector2.get_zero());
 }