private void reqSellItem(ShipEvoItemConfig config, int amount)
 {
     if (!this.isRequestingServer)
     {
         this.isRequestingServer = true;
         this.reqModify = ServerRequestManager.instance.SellModifyItem(config.cid, amount);
         this.reqModify.SellItemSuccess += new EventHandler<EventArgs>(this.OnSellSuccess);
         this.reqModify.SellItemFail += new EventHandler<EventArgs>(this.OnSellFail);
     }
 }
 public void ShowItemDetailInfoOf(ShipEvoItemConfig item)
 {
     if (GlobalLock.instance.CanGo)
     {
         GlobalLock.instance.GoNow();
     }
     else
     {
         return;
     }
     GameObjectUtil.InstantiateItemAsChildOf(this.detailPopPrefab, base.gameObject).GetComponent<ResourceItemDetailInfoUI>().SetItem(item);
 }
 public void SetItemConfig(ShipEvoItemConfig config)
 {
     this.itemConfig = config;
 }
Esempio n. 4
0
 internal bool m_43(ShipEvoItemConfig n)
 {
     return (n.cid == this.cid);
 }
Esempio n. 5
0
 public void SetShipEvoItems(ShipEvoItemConfig[] items)
 {
     if (items == null)
     {
         this.shipEvoItemsList = new List<ShipEvoItemConfig>();
     }
     else
     {
         this.shipEvoItemsList = items.ToList<ShipEvoItemConfig>();
     }
 }
 public void SetItem(ShipEvoItemConfig config)
 {
     this.itemConfig = config;
     this.UpdateItemInfo();
 }
Esempio n. 7
0
 internal bool m_43(ShipEvoItemConfig n)
 {
     return(n.cid == this.cid);
 }