public void OnPlayButton() { if (inputSuccess) { GenerateSequence(); progressBar.AddBar(); inputSuccess = false; } StartAnimation(); }