Exemplo n.º 1
0
 public void DropItem()
 {
     if (is_carrying == true) {
         is_carrying = false;
         heldItem.DropPiece ();
         heldItem = null;
     }
 }
Exemplo n.º 2
0
 public void ReturnItem()
 {
     if (is_carrying == true) {
         is_carrying = false;
         heldItem.DropPiece ();
         heldItem.CapturePiece();
         heldItem = null;
     }
 }
Exemplo n.º 3
0
 public void PickupItem(item_pickup item)
 {
     is_carrying = true;
     heldItem = item;
 }