コード例 #1
0
 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;
 }
コード例 #2
0
        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();
        }