public IEnumerator CheckQueue() { if (alertQueue.Count > 0) { DisplayAlert(alertQueue.Dequeue()); } yield return(new WaitForSecondsRealtime(alertInterval)); at.StartCoroutine(CheckQueue()); }