Ejemplo n.º 1
0
 // zombie
 public static float GetZombieSpeedMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<ZombieSpeedBooster>() ? boosterState.GetActive<ZombieSpeedBooster>().SpeedMultiplier : 1;
 }
Ejemplo n.º 2
0
 public static float GetPlayerAttackSpeedMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<PlayerAttackSpeedBooster>() ? boosterState.GetActive<PlayerAttackSpeedBooster>().AttackSpeedMultiplier : 1;
 }
Ejemplo n.º 3
0
 public static float GetZombieDamageRedcutionMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<ZombieDamageReductionBooster>() ? boosterState.GetActive<ZombieDamageReductionBooster>().DamageReductionMultiplier : 1;
 }