Пример #1
0
 public void ConsumeBottle()
 {
     BottleCountChanging?.Invoke(ChangeType.Consuming, new StockData {
         BottleCount = bottleCount
     });
     bottleCount--;
     BottleCountChanging?.Invoke(ChangeType.Consumed, new StockData {
         BottleCount = bottleCount
     });
 }
Пример #2
0
 public void Restock()
 {
     BottleCountChanging?.Invoke(ChangeType.Restocking, new StockData {
         BottleCount = bottleCount
     });
     bottleCount = maxBottleCount;
     BottleCountChanging?.Invoke(ChangeType.Restocked, new StockData {
         BottleCount = bottleCount
     });
 }