コード例 #1
0
 private void DealDamageToTargetsInAoe()
 {
     foreach (DamagableObject DO in targetsInAoe)
     {
         if (DO != null)
         {
             if (DO.transform != null)
             {
                 Instantiate(hitParticleEffectPrefab, DO.transform.position, hitParticleEffectPrefab.transform.rotation);
             }
         }
         DO.ModifyHealth(-damageValue);
     }
 }