23 lines
846 B
Plaintext
23 lines
846 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/ActOnCollide.html
|
|
Title: People Playground Modding - ActOnCollide
|
|
==================================================
|
|
|
|
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. |