public void ReleaseWantList()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_WantController, (UnityEngine.Object)null))
     {
         this.m_WantController.Release();
     }
     this.m_WantSource = (FriendPresentRootWindow.WantContent.ItemSource)null;
 }
 public void InitializeWantList()
 {
     this.ReleaseWantList();
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_WantController, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_WantSource = new FriendPresentRootWindow.WantContent.ItemSource();
     for (int index = 0; index < 3; ++index)
     {
         FriendPresentItemParam friendPresentWish = MonoSingleton <GameManager> .Instance.Player.FriendPresentWishList[index];
         if (friendPresentWish != null)
         {
             this.m_WantSource.Add(new FriendPresentRootWindow.WantContent.ItemSource.ItemParam(friendPresentWish));
         }
         else
         {
             this.m_WantSource.Add(new FriendPresentRootWindow.WantContent.ItemSource.ItemParam((FriendPresentItemParam)null));
         }
     }
     this.m_WantController.Initialize((ContentSource)this.m_WantSource, Vector2.get_zero());
 }