Ejemplo n.º 1
0
 public void Add(FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam param)
 {
     if (!param.IsValid())
     {
         return;
     }
     this.m_Params.Add(param);
 }
Ejemplo n.º 2
0
            public Api_PresentListGave(FlowNode_ReqPresentList node, GameObject gobj)
                : base(node)
            {
                if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)gobj, (UnityEngine.Object)null))
                {
                    return;
                }
                ContentNode component = (ContentNode)gobj.GetComponent <ContentNode>();

                if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
                {
                    return;
                }
                FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam itemParam = component.GetParam <FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam>();
                if (itemParam == null)
                {
                    return;
                }
                this.m_Param = itemParam.present;
            }
Ejemplo n.º 3
0
 public void InitializeReceiveList()
 {
     this.ReleaseReceiveList();
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveController, (UnityEngine.Object)null))
     {
         this.m_ReceiveSource = new FriendPresentRootWindow.ReceiveContent.ItemSource();
         List <FriendPresentReceiveList.Param> list = MonoSingleton <GameManager> .Instance.Player.FriendPresentReceiveList.list;
         for (int index = 0; index < list.Count; ++index)
         {
             FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam itemParam = new FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam(list[index]);
             if (itemParam.IsValid())
             {
                 this.m_ReceiveSource.Add(itemParam);
             }
         }
         this.m_ReceiveController.Initialize((ContentSource)this.m_ReceiveSource, Vector2.get_zero());
     }
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_ValueList.list.SetInteractable("btn_receive", this.m_ReceiveSource.GetCount() != 0);
 }