PawnController.playSteps C# (CSharp) 메소드

playSteps() 개인적인 메소드

private playSteps ( ) : IEnumerator
리턴 IEnumerator
    IEnumerator playSteps()
    {
        if (currentStepSoundRegion == null)
        {
            Debug.LogError("SoundRegion is null, waiting for it");
            yield return new WaitWhile(() => currentStepSoundRegion == null);
        }

        while (isMoving && currentStepSoundRegion != null)
        {
            currentStepSoundRegion.PlaySound();
            yield return new WaitForSeconds(StepsWaitTime);
        }
    }