public void AddBuyedGeneratorCount(GeneratorInfo generator, int count) { int oldCount = buyedGeneratorCount; buyedGeneratorCount += count; if (oldCount != buyedGeneratorCount) { GameEvents.OnGeneratorLevelUpdated(generator.GeneratorId); } }