A stepper can be used either to fire events in regular timer intervals, or as an alternating binary state of 0 and 1.
More...
|
float | cadence = 1f |
| A stepper instance fires an event every cadence sceonds. More...
|
|
float | RandomCadenceFactor = 1 |
| Set a value other than 0 to randomize the stepper cadence. Example: A stepper with cadence 1 and RandomCadenceFactor 2 fire events in time intervals between 0.5 and 2 seconds. More...
|
|
bool | val |
| The current bool value of the stepper. More...
|
|
|
float | Val [get] |
| The current float value of the stepper. More...
|
|
T | Val [get] |
| The current output calue.
|
|
A stepper can be used either to fire events in regular timer intervals, or as an alternating binary state of 0 and 1.
◆ cadence
float Accel.Stepper.cadence = 1f |
A stepper instance fires an event every cadence
sceonds.
◆ RandomCadenceFactor
float Accel.Stepper.RandomCadenceFactor = 1 |
Set a value other than 0 to randomize the stepper cadence. Example: A stepper with cadence 1 and RandomCadenceFactor 2 fire events in time intervals between 0.5 and 2 seconds.
◆ val
The current bool value of the stepper.
◆ Val
The current float value of the stepper.
The documentation for this class was generated from the following file:
- /Users/hannes/Desktop/MA/RunnersHigh/Assets/Scripts/RunnersHigh/Documented/Accel.cs