feat: add initial People Playground mod development kit
This commit is contained in:
23
extracted_wiki_content/internalReference/actoncollide.txt
Normal file
23
extracted_wiki_content/internalReference/actoncollide.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user