예제 #1
0
 public void ApplyDamage()
 {
     if (_nextReset > 0 && Time.time > _nextReset)
     {
         _blockedWeaponIds.Clear();
         foreach (var message in _unresolvedHitMessages)
         {
             _stats.AddAmount(StatsEnum.Health, -message.Damage);
             _stats.AddAmount(StatsEnum.Stability, -message.StabilityDamage);
         }
         _unresolvedHitMessages.Clear();
         _nextReset = 0;
     }
 }