21 lines
745 B
Plaintext
21 lines
745 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/RandomEventBehaviour.html
|
|
Title: People Playground Modding - RandomEventBehaviour
|
|
==================================================
|
|
|
|
public class RandomEventBehaviour
|
|
Inherits MonoBehaviour
|
|
Plays the given events all at once based on a chance per second
|
|
Nested types
|
|
RandomEventBehaviour.RandomEvent
|
|
Fields
|
|
public List<RandomEvent> Events
|
|
[SkipSerialisation]
|
|
The events to invoke
|
|
|
|
public float ChancePerSecond
|
|
[SkipSerialisation]
|
|
The chance per second from 0 to 1. Note that the events can be triggered several times per second still.
|
|
|
|
public float Cooldown
|
|
[SkipSerialisation]
|
|
Cooldown time in seconds. This determines how long to wait after an invocation before a new event can be dispatched |