Пример #1
0
 public void OnRightMouseClicked(Grid_N grid)
 {
     if (this.mRepairMachine.m_Repair != null && this.mRepairMachine.m_Repair.IsRepairingM)
     {
         return;
     }
     ActiveWnd();
     if (Pathea.PeGameMgr.IsMulti)
     {
         if (grid.ItemObj == null)
         {
             return;
         }
         _net.GetItem(grid.ItemObj.instanceId);
     }
     else
     {
         TryAddCurRepairItemToPlayerPackage();
     }
 }
Пример #2
0
    public virtual void Fetch(int index)
    {
        if (!CanFetch(index))
        {
            return;
        }

        if (_net != null)
        {
            _net.GetItem(((ItemObject)_itemList[index]).instanceId);
        }
        else
        {
            ItemSample item = _itemList[index];

            playerPkg.Add(item.protoId, item.stackCount);
            _itemList.Remove(item);
            if (fetchItem != null)
            {
                fetchItem.Invoke();
            }
        }
    }
Пример #3
0
 void OnRightMouseClickedMulti(int index, Grid_N grid)
 {
     _net.GetItem(grid.ItemObj.instanceId);
 }