Exemplo n.º 1
0
 public void pickUp(Item i)
 {
     if (i.canPickUp())
     {
         inventory.addInventoryItem(i.pickUpItem());
         if (!hasFirstItem)
         {
             engine.setState("textbox", "inventory");
             //show inventory for inventoryTutorial
             hasFirstItem = true;
         }
     }
 }
Exemplo n.º 2
0
 public void pickUp(Item i)
 {
     inventory.addInventoryItem(i.pickUpItem());
 }