public void Update() { if (elapsed < coolDown) { elapsed += Time.deltaTime; } else if (messageQueue.Count > 0) { elapsed -= coolDown; PopupText pop = messageQueue.Dequeue(); pop.ActivatePopUp(); } { empty = true; } }