<aside> 🗒️ Sequencers are designed for doing things in a particular order or dynamically. This also contains toggle events or ways to turn a large amount of objects on or off.
</aside>
<aside> 🗒️ This component is responsible for sequencing the activation and deactivation of multiple activators. It allows you to control the flow of activation and provides functions to jump to a specific step, step forward, or step back.
</aside>
InwardActivator[] Activators
An array of activators that will be executed in sequence.bool runTheirOffEvents
A flag to control whether to run the off events of the activators before running the next activator.bool loops
A flag to control whether the sequence should loop back to the beginning after reaching the end.int currentIndex
The current index of the active activator._JumpToStep(int chg)
Jumps to the specified step index and runs the activator at that index._StepForward()
Moves the sequence forward by one step. If the end is reached and looping is disabled, the function returns without doing anything._StepBack()
Moves the sequence back by one step. If the beginning is reached and looping is disabled, the function returns without doing anything.<aside> 🗒️ This script is used to control a count-based puzzle. It keeps track of the current count, allows adding and subtracting from the count, and triggers events based on certain conditions.
</aside>
int maxCount
- Maximum count value allowed.int curCount
- The current count value.bool isDone
- Flag indicating if the puzzle is completed.bool isReversible
- Flag indicating if the puzzle can be reversed.