コード例 #1
0
        void updateFood(int value)
        {
            WarehouseUI warehouseUI = U.cpUI.warehouseUI;

            if (warehouseUI.warehouseNum < value)
            {
                value = warehouseUI.warehouseNum;
            }
            warehouseUI.updateWarehouse(-value);
            this.food += value;
        }
コード例 #2
0
        void updateCapacity(int value)
        {
            WarehouseUI warehouseUI = U.cpUI.warehouseUI;

            if (warehouseUI.warehouseNum < value)
            {
                value = warehouseUI.warehouseNum;
            }
            warehouseUI.updateWarehouse(-value);

            this.capacity += value;
        }