コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }