コード例 #1
0
 public static float GetPlayerAttackSpeedMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<PlayerAttackSpeedBooster>() ? boosterState.GetActive<PlayerAttackSpeedBooster>().AttackSpeedMultiplier : 1;
 }
コード例 #2
0
 // zombie
 public static float GetZombieSpeedMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<ZombieSpeedBooster>() ? boosterState.GetActive<ZombieSpeedBooster>().SpeedMultiplier : 1;
 }
コード例 #3
0
 public static bool IsPlayerInvulnerable(IBoosterState boosterState)
 {
     return boosterState.IsActive<PlayerInvulnerabilityBooster>();
 }
コード例 #4
0
 public static float GetZombieDamageRedcutionMultiplier(IBoosterState boosterState)
 {
     return boosterState.IsActive<ZombieDamageReductionBooster>() ? boosterState.GetActive<ZombieDamageReductionBooster>().DamageReductionMultiplier : 1;
 }