public void ConsumeBottle() { BottleCountChanging?.Invoke(ChangeType.Consuming, new StockData { BottleCount = bottleCount }); bottleCount--; BottleCountChanging?.Invoke(ChangeType.Consumed, new StockData { BottleCount = bottleCount }); }
public void Restock() { BottleCountChanging?.Invoke(ChangeType.Restocking, new StockData { BottleCount = bottleCount }); bottleCount = maxBottleCount; BottleCountChanging?.Invoke(ChangeType.Restocked, new StockData { BottleCount = bottleCount }); }