Ejemplo n.º 1
0
 private void PickItem(PickableItem item)
 {
     if (!item.IsPickable)
     {
         // we don't know what the item will be used for
         Debug.Log("This will probably be usefull later.");
     }
     else if (!_inventory.GrabItem(item))
     {
         // we already carry something
         Debug.Log("My hands are full, I can't pick this up.");
     }
     else
     {
         item.PickedBy(this.transform);
         Debug.LogFormat("I might need this.");
     }
 }