예제 #1
0
 internal static void onImpact(
     ImpactType impactType,
     ImpactEffect?effectTagA,
     ImpactEffect?effectTagB,
     float3 position,
     float3 normal
     )
 {
     if (math.isnan(position.x))
     {
         return;
     }
     if (effectTagA.HasValue)
     {
         instantiateImpactEffect(effectTagA.Value.value, impactType, position, normal);
     }
     if (effectTagB.HasValue)
     {
         instantiateImpactEffect(effectTagB.Value.value, impactType, position, normal);
     }
 }