IEnumerator CheckForInputs()
{
while (true)
{
if (_interactables.All(i => i.HasBeenActivated()))
{
if(!ObjectIsShown){
GetComponent<AudioSource>().Play();
Camera.main.GetComponent<PerlinShake>().PlayShake();
}
ObjectIsShown = true;
}
else
{
ObjectIsShown = false;
}
yield return new WaitForSeconds(0.2f);
}
}