private void OnAccumualtionProgressChanged(GeneratorInfo targetGenerator, double timer, double interval, ProfitResult profit) { if (targetGenerator.GeneratorId == generator.GeneratorId) { OnAccumulationProgressUpdated((float)BosUtils.Clamp01(timer / interval)); UpdateTimerText(targetGenerator.RemainTime); } }
private void OnAccumulationCompleted(GeneratorInfo targetGenerator, ProfitResult profit) { if (targetGenerator.GeneratorId == generator.GeneratorId) { AddCompanyCash(targetGenerator.AccumulatedCash); CreateAccumulatedText(targetGenerator.AccumulatedCash, targetGenerator.IsManual); OnAccumulationProgressUpdated((float)BosUtils.Clamp01(targetGenerator.GenerateTimer / targetGenerator.AccumulateInterval)); UpdateTimerText(generator.RemainTime); } }