using System.Collections; using System.Collections.Generic; using UnityEngine; public class TitleScreenPopUpHelper : MonoBehaviour { private int currentIndex; public List popUpOrder = new List(); public void PopNext() { StartCoroutine(DelayedPopUp()); } private IEnumerator DelayedPopUp() { yield return null; if (currentIndex < popUpOrder.Count) { if (popUpOrder[currentIndex].showInFullVersion) { UIFrameManager.instance.ChangeActiveFrameKeepOldVisible(popUpOrder[currentIndex].uiFrame); } currentIndex++; } } }