public virtual ItemBasis tradeItem(ItemBasis invitem, ItemInventory targetinv) { ItemBasis pickup = ccm.OnItemEntity.Object; targetinv.trade(invitem, ccm.OnItemEntity); ccm.OnItemEntity.Object = invitem; //Debug.LogFormat("Trade:{0},{1}", invitem.Name, invitem.Erase); //Debug.LogFormat("PickUp:{0},{1}", pickup.Name, pickup.Erase); //Debug.LogFormat("OnEntity:{0},{1}", ccm.OnItemEntity.Entity.Name, ccm.OnItemEntity.Entity.Erase); return pickup; }