set State
Called to set the state of the system. This changes the stateInterval and resets it, and also calls onStateSwitched, which you should override unless you have a good idea what you're doing.
Parameters
new State
Called to set the state of the system. This changes the stateInterval and resets it, and also calls onStateSwitched, which you should override unless you have a good idea what you're doing.