add()
Register a function to be called once every frame.
Use setRate() to change how often that is.
Parameters
Automate.add() is a static utility. Call it on the Automate class itself, for example:
Automate.add(action)
| Parameter | Type | Default | Description |
|---|---|---|---|
action |
function |
required | The function to call; it receives no parameters. |