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