示例#1
0
 protected override bool Action(InventoryOwner owner)
 {
     if (_getUsed ? owner.Use(_inputInventory) : owner.Check(_inputInventory))
     {
         owner.Get(_outputInventory);
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 protected override bool Action(InventoryOwner owner)
 {
     return(_getUsed
         ? owner.Use(_inventory)
         : owner.Check(_inventory));
 }