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