I only want a sound to make sounds when I'm in a reverb zone. so I need some code to return true when I'm in a reverb zone:
while ??(transform is within a reverb zone)??
{
if (controller.isGrounded && controller.velocity.magnitude > 0.3 )
{
audio.clip = walkSounds[Random.Range(0, walkSounds.length)];
audio.Play();
yield WaitForSeconds(audioStepLength);
}
else
{
yield;
}
}