Beispiel #1
0
    // Token: 0x06002D9D RID: 11677 RVA: 0x000ABDD8 File Offset: 0x000A9FD8
    public static void DoImpact(GameObject go, global::SurfaceInfoObject.ImpactType type, Vector3 worldPos, Quaternion rotation)
    {
        global::SurfaceInfoObject surfaceInfoFor = global::SurfaceInfo.GetSurfaceInfoFor(go, worldPos);
        Object @object = Object.Instantiate(surfaceInfoFor.GetImpactEffect(type), worldPos, rotation);

        Object.Destroy(@object, 1f);
    }
 // Token: 0x06002DA1 RID: 11681 RVA: 0x000ABE20 File Offset: 0x000AA020
 public GameObject GetImpactEffect(global::SurfaceInfoObject.ImpactType type)
 {
     if (type == global::SurfaceInfoObject.ImpactType.Bullet)
     {
         return(this.bulletEffects[Random.Range(0, this.bulletEffects.Length)]);
     }
     if (type == global::SurfaceInfoObject.ImpactType.Melee)
     {
         return(this.meleeEffects[Random.Range(0, this.meleeEffects.Length)]);
     }
     return(null);
 }