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(); } }
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(); } } }
void OnRightMouseClickedMulti(int index, Grid_N grid) { _net.GetItem(grid.ItemObj.instanceId); }