public class ActOnCollide

Inherits MonoBehaviour

Behaviour that invokes a UnityEvent when it gets the MonoBehaviour.OnCollisionEnter2D message

Fields

public float ImpactForceThreshold

[SkipSerialisation]

The minimum amount of force required to invoke the event


public float DispatchChance

[SkipSerialisation]

Chance from 0.0 to 1.0 that the event is triggered


public Collider2D Collider

[SkipSerialisation] [Tooltip("Leave null to allow any collider to trigger the event")]

The collider to watch out for. Any collider triggers the event if this is null.


public UnityEvent Actions

[SkipSerialisation]

The event that is invoked when a sufficient collision occurs. May be null.


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi