Exemplo n.º 1
0
 protected override bool Action(InventoryOwner owner)
 {
     if (_getUsed ? owner.Use(_inputInventory) : owner.Check(_inputInventory))
     {
         owner.Get(_outputInventory);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 protected override bool Action(InventoryOwner owner)
 {
     owner.Get(_inventory);
     return(true);
 }
Exemplo n.º 3
0
 protected abstract bool Action(InventoryOwner owner);
Exemplo n.º 4
0
 protected override bool Action(InventoryOwner owner)
 {
     return(_getUsed
         ? owner.Use(_inventory)
         : owner.Check(_inventory));
 }