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


Attention!

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

bi bij bibi