Example #1
0
 private void placeItemInContainer(Item item, ContainerScript container)
 {
     container.addItem(item.gameObject);
     item.setState(Item.ItemState.contained);
     inventory.Remove(item.gameObject);
     DropItem e = new DropItem(pg.timeSteps, this, currentRoom, item);
     Timeline.addEvent(new DropItem(pg.timeSteps, this, currentRoom, item));
 }
Example #2
0
 private void pickupItemFromContainer(Item item, ContainerScript container)
 {
     container.items.Remove(item.gameObject);
     pickupItem(item);
 }