示例#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)
 {
     owner.Get(_inventory);
     return(true);
 }
 protected abstract bool Action(InventoryOwner owner);
示例#4
0
 protected override bool Action(InventoryOwner owner)
 {
     return(_getUsed
         ? owner.Use(_inventory)
         : owner.Check(_inventory));
 }