Example #1
0
 public int GetSpeedMult(int generatorId)
 {
     if (!SpeedMults.ContainsKey(generatorId))
     {
         SpeedMults.Add(generatorId, 1);
     }
     return(SpeedMults[generatorId]);
 }
Example #2
0
 private void MultSpeed(int generatorId, int val)
 {
     if (!SpeedMults.ContainsKey(generatorId))
     {
         SpeedMults.Add(generatorId, 1);
     }
     SpeedMults[generatorId] *= val;
     UniRx.MessageBroker.Default.Publish <SpeedMultChangedArgs>(new SpeedMultChangedArgs {
         SpeedModifier = this, Name = "secretary", GeneratorId = generatorId
     });
 }