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);
}
}