private IEnumerator JetpackLogic() { _movingController.StartFlying(); _visual.StartJetpack(); _ui.StartBoostStatus(BoostType.Jetpack, _characterData.JetpackDuration); yield return(new WaitForSeconds(1.0f)); for (int i = _characterData.JetpackDuration - 1; i > 0; --i) { _ui.SetBoostStatus(BoostType.Jetpack, i); yield return(new WaitForSeconds(1.0f)); } _ui.EndBoostStatus(BoostType.Jetpack); _movingController.StopFlying(); Sounds.Instance.StopBoostSound(BoostType.Jetpack); _visual.StopJetpack(); }