pause method
void
pause()
Pauses the component by setting the time scale to 0.0.
Implementation
void pause() {
timeScale = 0.0;
}
Pauses the component by setting the time scale to 0.0.
void pause() {
timeScale = 0.0;
}