private IEnumerator Recover() { yield return(new WaitForSeconds(bounceBackDelay)); _movement.Disable(false); _paintDamage.RemovePaintDamage(); CancelBounce(); }
IEnumerator PlaySound() { _audioSource.Play(); yield return(new WaitWhile(() => _audioSource.isPlaying)); gameObject.SetActive(false); _paintDamage.RemovePaintDamage(); }