コード例 #1
0
        private IEnumerator Recover()
        {
            yield return(new WaitForSeconds(bounceBackDelay));

            _movement.Disable(false);
            _paintDamage.RemovePaintDamage();
            CancelBounce();
        }
コード例 #2
0
        IEnumerator PlaySound()
        {
            _audioSource.Play();
            yield return(new WaitWhile(() => _audioSource.isPlaying));

            gameObject.SetActive(false);
            _paintDamage.RemovePaintDamage();
        }