public InventoryOperation( long inventoryOperationId, string actionNumber, DateTime actionDate, InventoryActionType actionType, long? fuelReportDetailId, long? charterId) { InventoryOperationId = inventoryOperationId; ActionNumber = actionNumber; ActionDate = actionDate; ActionType = actionType; FuelReportDetailId = fuelReportDetailId; this.CharterId = charterId; }
public override void OnEnter() { InventoryManager inventoryManager = InventoryManager.instance; if (inventoryManager != null) { InventoryActionType inventoryActionType = (InventoryActionType)actionType.Value; if (inventoryActionType == InventoryActionType.Add) { inventoryManager.AddItem(itemId.Value); } else { inventoryManager.RemoveItem(itemId.Value); } } Finish(); }